Jump to content

Launch legacy kernel from mainline uboot is possible?


boobypi

Recommended Posts

Hello,

 

I would like to know if it's possible to put a mainline uboot with ethernet, usb support and lunch the old legacy kernel with it?
I need it to be able to boot remotely (tftp) or from usb to make backup, restore without remove sdcard or lunch a recovery mode remotely by lora and a little uC speaking on uart of OPI.
With mainline uboot it's easy to lunch openwrt on a ramdisk without mounting sdcard.
If i can do the same (mainline uboot) with legacy kernel, i m happy.
Thanks

Link to comment
Share on other sites

1 minute ago, Igor said:

We only use mainline u-boot on Allwinner boards. For booting any kernel.

Thanks for replying,
Do you know if i can just copy or dd my new uboot custumized?
I have an mainline uboot-orange-pc-sunxi-ith-spl.bin (421.3ko) to write somewhere on sdcard...

Link to comment
Share on other sites

# erase
dd if=/dev/zero of=/dev/SDCARD bs=1k count=1023 seek=1 status=noxfer
# write
dd if=u-boot-sunxi-with-spl.bin of=/dev/SDCARD bs=1024 seek=8 status=noxfer 

replace /dev/SDCARD and execute.

Link to comment
Share on other sites

example of command (tested on OP PC) to boot openwrt in ram from a tftp server (sharing dtb, uimage and rootfs) :

setenv ipaddr 192.168.x.x
setenv serverip 192.168.x.x
setenv netmask 255.255.255.0
setenv kernel_addr_r 0x42000000
setenv fdt_addr_r 0x43000000
setenv ramdisk_addr_r 0x43300000
setenv rootfsaddr 0x43300000

setenv tftpLoadUBoot tftpboot 0x42000000 openwrt-sunxi-uImage
setenv tftpLoadDTB tftpboot 0x43000000 dtb
setenv tftpLoadROOTFSRAM tftpboot 0x43300000 openwrt-sunxi-root.ext4
setenv tftpLoadCMD run tftpLoadUBoot tftpLoadDTB tftpLoadROOTFSRAM
setenv bootargs console=ttyS0,115200 mem=512M earlyprintk root=/dev/ram0 rw ramdisk_size=200000 initrd=0x43300000,100M
saveenv
run tftpLoadCMD
bootm 0x42000000 - 0x43000000 - 0x43300000

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines