[U-Boot] is it possilbe to have uboot find the kernel in the file system?
John Stile
john at stilen.com
Thu Jan 3 21:56:41 CET 2013
Is it possible to add my kernel to the rootfs partition rather than have
a separate partition?
I am using U-Boot 1.3.4, on a at91sam9g20ek (256Mb Nand, 8Mb Nor), and
use the sam-ba firmware upload tool.
I'd like to put everything on nand, ignore nor, and hold redundant
areas, in perpetration for firmware updates.
My starting point is from the atmel Linux4SAM project:
Nor layout:
Logical address: 0xD0000000
size Address-Range
16895 Area 0: D0000000 to D00041FF (RO) Bootstrap
16895 Area 1: D0004200 to D00083FF Environment
236543 Area 2: D0008400 to D0041FFF (RO) U-Boot
2152687 Area 3: D0042000 to D0251FFF Kernel
6217727 Area 4: D0252000 to D083FFFF FS
Nand layout:
4194304: 0x000000000000-0x000000400000 : "bootstrap/uboot/kernel"
62914560 0x000000400000-0x000004000000 : "rootfs"
201226592 0x000004000000-0x000010000000 : "data"
bootargs:
mem=64M console=ttyS0,115200
mtdparts=atmel_nand:4M(bootstrap/uboot/kernel)ro,60M(rootfs),-(data)
root=/dev/mtdblock1 rw rootfstype=jffs2
bootcmd:
cp.b 0xD0042000 0x22200000 0x0019306C; bootm 0x22200000
More information about the U-Boot
mailing list