Reinstalling Debian on Dockstar December 01, 2019 12:49AM |
Registered: 10 years ago Posts: 16 |
ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=00:10:75:1A:AA:2F arcNumber=2998
Re: Reinstalling Debian on Dockstar December 01, 2019 01:43AM |
Admin Registered: 13 years ago Posts: 19,114 |
Quote
Updated 25 Aug 2019:
Basic Debian buster Kirkwood rootfs for most Kirwood plugs:
- tarball size: 209M
- install size: 536M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, and mtd-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
cd8ad170aa1a9fdc2a0a1c43ab1c0721
sha256:
8ccbbced367b4c2bf3728262e882f8232aff0fecd1c0c767219a0cab49a0b9bf
Quote
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync
cat dts/kirkwood-dockstar.dtb >> zImage.fdt
Re: Reinstalling Debian on Dockstar December 01, 2019 11:10AM |
Registered: 10 years ago Posts: 16 |
Re: Reinstalling Debian on Dockstar December 01, 2019 09:09PM |
Admin Registered: 13 years ago Posts: 19,114 |
whoami
cat /media/sdb1/etc/fstabExpected output:
... LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1 ...
#LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1 /dev/sda1 / ext3 noatime,errors=remount-ro 0 1
Re: Reinstalling Debian on Dockstar December 01, 2019 11:28PM |
Registered: 10 years ago Posts: 16 |
Re: Reinstalling Debian on Dockstar December 02, 2019 03:47AM |
Admin Registered: 13 years ago Posts: 19,114 |
ls -lart /media/sdb1/boot
Re: Reinstalling Debian on Dockstar December 02, 2019 10:45AM |
Registered: 10 years ago Posts: 16 |
total 55988 drwxr-xr-x 21 root root 4096 Feb 17 2015 .. drwxr-xr-x 2 root root 4096 Aug 16 19:01 dts -rwxr-xr-x 1 root root 4963616 Aug 17 22:43 zImage-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 165790 Aug 18 00:24 config-5.2.9-kirkwood-tld-1 -rw------- 1 root root 4963616 Aug 18 00:27 vmlinuz-5.2.9-kirkwood-tld-1 -rw------- 1 root root 3101889 Aug 18 00:27 System.map-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 9649570 Aug 18 00:38 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 9713872 Aug 25 02:16 initrd.img-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 4963680 Aug 25 02:22 uImage.orig -rw-r--r-- 1 root root 9713936 Aug 25 02:22 uInitrd -rwxr-xr-x 1 root root 4973674 Dec 2 05:22 zImage.fdt drwxr-xr-x 3 root root 4096 Dec 2 05:22 . -rw-r--r-- 1 root root 4973738 Dec 2 05:22 uImage
Re: Reinstalling Debian on Dockstar December 02, 2019 05:31PM |
Admin Registered: 13 years ago Posts: 19,114 |
Re: Reinstalling Debian on Dockstar December 02, 2019 05:42PM |
Admin Registered: 13 years ago Posts: 19,114 |
Quote
Updated 20 Feb 2016:
This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.
Basic minimal Debian Kirkwood rootfs for most Kirwood plugs:
- tarball size: 137M
- install size: 398M
- a basic jessie rootfs.
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
9f957e1dc5a36f90a285ab4615cb02fd
sha256:
d33349118e34bd078ca635cd2d6776f3e312accfc77d29da5870b9980add5c36
Re: Reinstalling Debian on Dockstar December 02, 2019 09:26PM |
Admin Registered: 13 years ago Posts: 19,114 |
Re: Reinstalling Debian on Dockstar December 02, 2019 11:17PM |
Registered: 10 years ago Posts: 16 |
Re: Reinstalling Debian on Dockstar December 03, 2019 03:32AM |
Admin Registered: 13 years ago Posts: 19,114 |
Quote
The box boots into the Pogoplug OS
Re: Reinstalling Debian on Dockstar December 04, 2019 01:14AM |
Registered: 10 years ago Posts: 16 |
Re: Reinstalling Debian on Dockstar December 04, 2019 03:28AM |
Admin Registered: 13 years ago Posts: 19,114 |
Re: Reinstalling Debian on Dockstar December 07, 2019 11:35AM |
Registered: 10 years ago Posts: 16 |
Re: Reinstalling Debian on Dockstar July 22, 2020 08:34AM |
Registered: 7 years ago Posts: 40 |
Re: Reinstalling Debian on Dockstar July 22, 2020 04:21PM |
Admin Registered: 13 years ago Posts: 19,114 |
Quote
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync