* Re: [ptxdist] Problem boot PREEMPT_RT kernel
2013-03-27 11:00 [ptxdist] Problem boot PREEMPT_RT kernel "Breixo López García"
@ 2013-03-27 13:38 ` Teresa Gamez
2013-03-27 15:17 ` "Breixo López García"
0 siblings, 1 reply; 3+ messages in thread
From: Teresa Gamez @ 2013-03-27 13:38 UTC (permalink / raw)
To: Breixo López García; +Cc: ptxdist
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
^ permalink raw reply [flat|nested] 3+ messages in thread