Launch legacy kernel from mainline uboot is possible?


boobypi
 Share

0

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 post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

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 post
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 post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

0