From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.gmx.net ([212.227.17.21]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UKs6r-0004CW-7l for ptxdist@pengutronix.de; Wed, 27 Mar 2013 16:17:54 +0100 Received: from 3capp-gmx-bs19.server.lan ([172.19.170.71]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LjP2f-1UwfZ62jvT-00dUDG for ; Wed, 27 Mar 2013 16:17:47 +0100 MIME-Version: 1.0 Message-ID: From: =?UTF-8?Q?=22Breixo_L=C3=B3pez_Garc=C3=ADa=22?= Date: Wed, 27 Mar 2013 16:17:47 +0100 (CET) In-Reply-To: <5152F666.8010700@phytec.de> References: , <5152F666.8010700@phytec.de> 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-Type: multipart/mixed; boundary="===============0176099081==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0176099081== Content-Type: text/html; charset=UTF-8 Hi Teresa,

Sorry for the offtopic Issue in the mailing list and also thanks for your answer.

Regards

Breixo

Gesendet: Mittwoch, 27. März 2013 um 14:38 Uhr
Von: "Teresa Gamez" <t.gamez@phytec.de>
An: "Breixo López García" <Breixo.Lopez@gmx.de>
Cc: ptxdist@pengutronix.de
Betreff: Re: [ptxdist] Problem boot PREEMPT_RT kernel
Am 27.03.2013 12:00, schrieb "Breixo López García":
> 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 <mailto: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=pcm051
> user=
> # use 'dhcp' to do dhcp in barebox and in kernel
> # use 'none' if you want to skip kernel ip autoconfiguration
> #ip=dhcp
> # or set your networking parameters here
> eth0.ipaddr=192.168.3.11
> eth0.netmask=255.255.255.0
> eth0.gateway=192.168.3.1
> eth0.serverip=192.168.3.58
> # can be either 'tftp', 'disk', 'nor' or 'nand'
> kernel_loc=nand
> # can be either 'disk', 'net', 'nand' or 'initrd'
> rootfs_loc=net
> # can be either 'jffs2' 'ext3' or 'ubifs'
> rootfs_type=ext3
> rootfsimage=root-$machine.$rootfs_type
> # The image type of the kernel.
> kernelimage_type=uimage
> kernelimage=linuximage
> if [ -n $user ]; then
> kernelimage="$user"-"$kernelimage"
> nfsroot="$eth0.serverip:/opt/phyCORE-AM335x-PD12.1.0/NFS/"
> rootfsimage="$user"-"$rootfsimage"
> else
> nfsroot="$eth0.serverip:/opt/phyCORE-AM335x-PD12.1.0/NFS/"
> fi
> autoboot_timeout=3
> bootargs="console=ttyO0,115200"
>
> #Flash
> nand_parts="128k(xload),128k(xload_backup1),128k(xload_backup2),128k(xload_backu
> nor_parts="128k(xload),512k(barebox),128k(bareboxenv),4M(kernel),-(root)"
> rootfs_mtdblock_nand="12,2048"
> nand_device="omap2-nand.0"
> nor_device="spi_flash"
> rootfs_part_linux_dev=mmcblk0p2
> kernel_part=disk0.0
> # set a fancy prompt (if support is compiled in)
> PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
> #Displays
> #bootargs="$bootargs da8xx_fb.panel_name=PV_PD050VL1"
> #bootargs="$bootargs da8xx_fb.panel_name=PV_PD104SLF"
> #bootargs="$bootargs da8xx_fb.panel_name=PV_PM070WL4"
> bootargs="$bootargs da8xx_fb.panel_name=PV_PM070WL4"
> Thanks for your time
> -Regards
> Breixo
>
>


--
ptxdist mailing list
ptxdist@pengutronix.de

--===============0176099081== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0176099081==--