bootloader script - ihipop/winsun_mininas_v1 GitHub Wiki
CEFDK bootloader and tftp boot
tftp get 192.168.199.150 0x1000000 bzImage
tftp get 192.168.199.150 0x8000000 ramdisk.ext2.initrd.gz
ramdisk 0x8000000 0x8000000
bootkernel -b 0x1000000 "console=tty0 console=ttyS0,115200 root=/dev/ram0 rw init=/linuxrc ramdisk_size=64000000"
Explanations:
-
the second argument of
ramdisk
command is ramdisk size;0x8000000
simply works, no documentation further explain if it's compressed ramdisk size, uncompressed ramdisk size, or something else. -
root=/dev/ram0
is critical for ramdisk boot; -
init=/linuxrc
is also critical for kernel launching the very first init script, without it the kernel will complain; -
ramdisk_size=xxxx
is required if ramdisk is larger than the default settings. I don't know what is the default value, but without this argument, the kernel complains.