Welcome! Log In Create A New Profile

Advanced

HOWTO - Debian on Checkpoint L-50 with Openwrt fallback

Posted by Gravelrash 
HOWTO - Debian on Checkpoint L-50 with Openwrt fallback
March 31, 2023 04:49AM
Prerequisites : Patience and a beverage of choice plus optional snacks :)

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


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

poweroff the device and insert the rootfs usb device into any of the two usb ports. Poweron the device and allow debian to boot

You will find (at the time of wrting this, I did) that you will need to amend the /etc/apt/sources.list file. Debian made some changes to the security repo - for obvious security reasons lol.... so you would need to amend your sources to look like this

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

KUDOS for development
Bodhi, Rayknight and the outstanding team and contributors over at Openwrt

Kudos for feedback and contribution
crom, Gravelrash

.
Based upon the initial thread started here

edit :amended url locations and applied savenv to the uboot modifaication commands

============================
Breaking stuff since 1994 :-)
============================



Edited 6 time(s). Last edit at 04/10/2023 05:08PM by Gravelrash.
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback
March 31, 2023 04:49AM
The above should provide you with the ability to boot into a full debian distro and make all the fun you want to have from it... if there is anything you would like to correct me on or want me to provide greater detail around. please feel free to post here or PM me and i will do my utmost to oblige

Gravelrash

============================
Breaking stuff since 1994 :-)
============================



Edited 1 time(s). Last edit at 04/10/2023 07:47AM by Gravelrash.
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback
April 10, 2023 09:52AM
added cross linking to investigation thread

============================
Breaking stuff since 1994 :-)
============================
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback
April 10, 2023 03:11PM
Gravelrash,

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

The 2 links were swapped above (1st link is Debian rootfs link).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback
April 10, 2023 03:13PM
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'

Need:
saveenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HOWTO - Debian on Checkpoint L-50 with Openwrt fallback
April 10, 2023 05:09PM
amended as per feedback

@Bodhi - eagle eyed as ever :)

============================
Breaking stuff since 1994 :-)
============================
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: