From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.x-arc.co.uk ([217.6.246.34] helo=root.phytec.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UKqYx-0006Lg-Ty for ptxdist@pengutronix.de; Wed, 27 Mar 2013 14:38:48 +0100 Message-ID: <5152F666.8010700@phytec.de> Date: Wed, 27 Mar 2013 14:38:46 +0100 From: Teresa Gamez MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [ptxdist] Problem boot PREEMPT_RT kernel Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: =?ISO-8859-1?Q?Breixo_L=F3pez_Garc=EDa?= Cc: ptxdist@pengutronix.de Am 27.03.2013 12:00, schrieb "Breixo L=F3pez Garc=EDa": > Hy Community, > I have been trying to boot in the phyCORE-AM335x board the preempt_rt = > kernel from OSELAS > (https://www.osadl.org/Profile-of-system-in-rack-7-slot-5.qa-profile-r7s5= .0.html#kernel) > I can compile propertly the kernel, but when I do the boot in the = > board, the following Issue appears in the target console: > *barebox@Phytec * phyCORE-AM335x:/ boot -k tftp = > -r net > do_tftpb: /.tftp_tmp_path/linuximage -> /image > 100Mbps full duplex link detected > [##################################################write: Out of memory > Ther kernel image is 4,8MB and I suppose that is out of the reserver = > area for kernel in the RAM (tftp mode) before it is saved in the = > flash. Where I can change the value of the started address or it is = > other Issue. > I am using: > -Toolchain:OSELAS.toolchain-2011.11.3 > -ptxdist: version 2012.03.0 This is an issue when using the OSELAS phyCORE-AM335x rt kernel on the = Phytec BSP and not related to ptxdist. So this list is the wrong place = to ask. Please contact the Phytec Support in such cases. Your malloc space in ram is to small. You have to increase the = MALLOC_SIZE in the barebox config. You will face the same problem when trying to flash the image to NAND or = SPI NOR flash. You will have to increase the partition size in the environment and also = update the rootfs. Regards, Teresa > Whit the kernel boot through TFTP and the filesystem NFS: > barebox config. > !/bin/sh > machine=3Dpcm051 > user=3D > # use 'dhcp' to do dhcp in barebox and in kernel > # use 'none' if you want to skip kernel ip autoconfiguration > #ip=3Ddhcp > # or set your networking parameters here > eth0.ipaddr=3D192.168.3.11 > eth0.netmask=3D255.255.255.0 > eth0.gateway=3D192.168.3.1 > eth0.serverip=3D192.168.3.58 > # can be either 'tftp', 'disk', 'nor' or 'nand' > kernel_loc=3Dnand > # can be either 'disk', 'net', 'nand' or 'initrd' > rootfs_loc=3Dnet > # can be either 'jffs2' 'ext3' or 'ubifs' > rootfs_type=3Dext3 > rootfsimage=3Droot-$machine.$rootfs_type > # The image type of the kernel. > kernelimage_type=3Duimage > kernelimage=3Dlinuximage > if [ -n $user ]; then > kernelimage=3D"$user"-"$kernelimage" > nfsroot=3D"$eth0.serverip:/opt/phyCORE-AM335x-PD12.1.0/NFS/" > rootfsimage=3D"$user"-"$rootfsimage" > else > nfsroot=3D"$eth0.serverip:/opt/phyCORE-AM335x-PD12.1.0/NFS/" > fi > autoboot_timeout=3D3 > bootargs=3D"console=3DttyO0,115200" > > #Flash > nand_parts=3D"128k(xload),128k(xload_backup1),128k(xload_backup2),128k(xl= oad_backu > nor_parts=3D"128k(xload),512k(barebox),128k(bareboxenv),4M(kernel),-(root= )" > rootfs_mtdblock_nand=3D"12,2048" > nand_device=3D"omap2-nand.0" > nor_device=3D"spi_flash" > rootfs_part_linux_dev=3Dmmcblk0p2 > kernel_part=3Ddisk0.0 > # set a fancy prompt (if support is compiled in) > PS1=3D"\e[1;32mbarebox@\e[1;31m\h:\w\e[0m " > #Displays > #bootargs=3D"$bootargs da8xx_fb.panel_name=3DPV_PD050VL1" > #bootargs=3D"$bootargs da8xx_fb.panel_name=3DPV_PD104SLF" > #bootargs=3D"$bootargs da8xx_fb.panel_name=3DPV_PM070WL4" > bootargs=3D"$bootargs da8xx_fb.panel_name=3DPV_PM070WL4" > Thanks for your time > -Regards > Breixo > > -- = ptxdist mailing list ptxdist@pengutronix.de