HOWTO - Debian on Checkpoint L-50 with Openwrt fallback March 31, 2023 04:49AM |
Registered: 10 years ago Posts: 1,037 |
setenv bootdev usb setenv device '0:1' setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial' setenv dtb_file '/boot/dts/kirkwood-l-50.dtb' setenv load_uimage_addr 0x800000 setenv load_uimage 'echo loading uImage ...; ext2load $bootdev $device $load_uimage_addr /boot/uImage' setenv load_initrd_addr 0x1100000 setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd' setenv load_dtb_addr 0x2c00000 setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file' setenv bootcmd_exec 'if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi' setenv bootcmd 'usb start; run set_bootargs; run bootcmd_exec; reset' saveenv
deb http://ftp.us.debian.org/debian bullseye main contrib non-free deb-src http://ftp.us.debian.org/debian bullseye main contrib non-free deb http://security.debian.org/debian-security bullseye-security main contrib non-free deb http://http.debian.net/debian bullseye-updates main contrib non-free deb-src http://http.debian.net/debian bullseye-updates main contrib non-free
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback March 31, 2023 04:49AM |
Registered: 10 years ago Posts: 1,037 |
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback April 10, 2023 09:52AM |
Registered: 10 years ago Posts: 1,037 |
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback April 10, 2023 03:11PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Prerequisites : Openwrt installed on the Device following the instructions here
Prerequisites : rootfs prepared on usb key using Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 following the instructions here
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback April 10, 2023 03:13PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Once Openwrt is installed and booted, login and modify your u-boot variables to include the following, copy and paste if you wish, but i don't advocate doing it blindly - it should work, but be certain you have backed up your uboot environment variables before you start using the fw_printenv command from the Openwrt console
setenv bootdev usb
setenv device '0:1'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'
setenv dtb_file '/boot/dts/kirkwood-l-50.dtb'
setenv load_uimage_addr 0x800000
setenv load_uimage 'echo loading uImage ...; ext2load $bootdev $device $load_uimage_addr /boot/uImage'
setenv load_initrd_addr 0x1100000
setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_dtb_addr 0x2c00000
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
setenv bootcmd_exec 'if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi'
setenv bootcmd 'usb start; run set_bootargs; run bootcmd_exec; reset'
saveenv
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback April 10, 2023 05:09PM |
Registered: 10 years ago Posts: 1,037 |