Re: Can I install Debian without permanently enabling ssh? August 30, 2017 11:55PM |
Registered: 6 years ago Posts: 41 |
Re: Can I install Debian without permanently enabling ssh? August 31, 2017 03:30AM |
Admin Registered: 12 years ago Posts: 17,919 |
Re: Can I install Debian without permanently enabling ssh? August 31, 2017 04:05AM |
Registered: 6 years ago Posts: 41 |
Re: Installing Debian from stock U-Boot/firmware September 03, 2017 11:36AM |
Registered: 6 years ago Posts: 41 |
Re: Installing Debian from stock U-Boot/firmware September 03, 2017 02:39PM |
Admin Registered: 12 years ago Posts: 17,919 |
Quote
10. Set up netconsole. It's important to set up neconsole if you don't already have serial console connected. If you've flashed the default environments in step 8 then activate netconsole with the following envs:
fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi'
fw_setenv preboot 'run preboot_nc'
fw_setenv ipaddr '192.168.0.xxx'
fw_setenv serverip '192.168.0.yyy'
Re: Installing Debian from stock U-Boot/firmware September 05, 2017 04:56AM |
Registered: 6 years ago Posts: 41 |
admin@pogoplug:~$ sudo fw_setenv serverip 192.168.1.150 admin@pogoplug:~$ sudo fw_setenv ipaddr 192.168.1.151 admin@pogoplug:~$ sudo fw_setenv if_netconsole 'ping $serverip' admin@pogoplug:~$ sudo fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;' admin@pogoplug:~$ sudo fw_setenv preboot 'run if_netconsole start_netconsole' admin@pogoplug:~$ grep netconsole /etc/initramfs-tools/modules netconsole netconsole=6666@192.168.1.151/eth0,6666@192.168.1.150/ admin@pogoplug:~$ sudo update-initramfs -u update-initramfs: Generating /boot/initrd.img-4.12.1-kirkwood-tld-1 I: The initramfs will attempt to resume from /dev/sda2 I: (UUID=dfc91059-3ed1-4fe5-9ba5-7adafbc2c65f) I: Set the RESUME variable to override this. admin@pogoplug:~$ sudo mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.12.1 -d /boot/initrd.img-4.12.1-kirkwood-tld-1 /boot/uInitrd update-initramfs: Generating /boot/initrd.img-4.12.1-kirkwood-tld-1 Image Name: initramfs-4.12.1 Created: Tue Sep 5 15:15:34 2017 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7710767 Bytes = 7530.05 kB = 7.35 MB Load Address: 00000000 Entry Point: 00000000 admin@pogoplug:~$ ls -lrt /boot total 44596 drwxr-xr-x 2 root root 4096 Jul 16 03:44 dts -rw-r--r-- 1 root root 153501 Jul 16 08:51 config-4.12.1-kirkwood-tld-1 -rwxr-xr-x 1 root root 3821528 Jul 16 10:12 zImage-4.12.1-kirkwood-tld-1 -rw------- 1 root root 3821528 Jul 16 13:13 vmlinuz-4.12.1-kirkwood-tld-1 -rw------- 1 root root 2504031 Jul 16 13:13 System.map-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 8435004 Jul 16 13:36 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 3821592 Jul 20 13:41 uImage -rwxr-xr-x 1 root root 3833423 Aug 29 13:27 zImage.fdt -rw-r--r-- 1 root root 3833487 Aug 29 21:59 uImage.fdt -rw-r--r-- 1 root root 7710767 Sep 5 15:03 initrd.img-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 7710831 Sep 5 15:15 uInitrd
Re: Installing Debian from stock U-Boot/firmware September 05, 2017 11:19AM |
Admin Registered: 12 years ago Posts: 17,919 |
Quote
Here are a couple of deviations that would like to make sure are OK:
- I had to add "tld-1" to the initrd path, so specified "/boot/initrd.img-4.12.1-kirkwood-tld-1" instead of the suggested "/boot/initrd.img-4.12.1-kirkwood".
- The output of mkimage has the image name as "initramfs-4.12.1" with no "-kirkwood" suffix.
Quote
admin@pogoplug:~$ sudo fw_setenv if_netconsole 'ping $serverip'
admin@pogoplug:~$ sudo fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
admin@pogoplug:~$ sudo fw_setenv preboot 'run if_netconsole start_netconsole'
fw_printenv preboot_nc
-rw-r--r-- 1 root root 3821592 Jul 20 13:41 uImagethen remove these files, to make it clear (to yourself later):
-rwxr-xr-x 1 root root 3833423 Aug 29 13:27 zImage.fdt -rw-r--r-- 1 root root 3833487 Aug 29 21:59 uImage.fdt
Re: Installing Debian from stock U-Boot/firmware September 05, 2017 11:49PM |
Registered: 6 years ago Posts: 41 |
admin@pogoplug:~$ sudo mkimage ... -n initramfs-4.12.1 ... ... Image Name: initramfs-4.12.1 ... admin@pogoplug:~$ sudo mkimage ... -n initramfs-4.12.1-kirkwood-tld-1 ... ... Image Name: initramfs-4.12.1-kirkwood-tld-1 ...
Quote
4. Generate new uInitrd (reminder: replace the 3.2.28 below with your current kernel version):
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.2.28 -d /boot/initrd.img-3.2.28-kirkwood /boot/uInitrd
Expected output:
Image Name: initramfs-3.2.28-kirkwood
Created: Wed Sep 5 14:11:38 2012
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 6686266 Bytes = 6529.56 kB = 6.38 MB
Load Address: 0x00000000
Entry Point: 0x00000000
Re: Installing Debian from stock U-Boot/firmware September 06, 2017 12:10AM |
Admin Registered: 12 years ago Posts: 17,919 |
Quote
Assuming the kernel version is 3.2.28-kirkwood
-rw-r--r-- 1 root root 153501 Jul 16 08:51 config-4.12.1-kirkwood-tld-1 -rwxr-xr-x 1 root root 3821528 Jul 16 10:12 zImage-4.12.1-kirkwood-tld-1 -rw------- 1 root root 3821528 Jul 16 13:13 vmlinuz-4.12.1-kirkwood-tld-1 -rw------- 1 root root 2504031 Jul 16 13:13 System.map-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 8435004 Jul 16 13:36 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 7710767 Sep 5 15:03 initrd.img-4.12.1-kirkwood-tld-1
Re: Installing Debian from stock U-Boot/firmware September 06, 2017 09:29AM |
Registered: 6 years ago Posts: 41 |
Re: Installing Debian from stock U-Boot/firmware September 06, 2017 05:28PM |
Admin Registered: 12 years ago Posts: 17,919 |
Re: Installing Debian from stock U-Boot/firmware September 07, 2017 08:07AM |
Registered: 6 years ago Posts: 41 |
Re: Installing Debian from stock U-Boot/firmware September 07, 2017 04:38PM |
Admin Registered: 12 years ago Posts: 17,919 |