This is how I was able to fit Debian into internal 512MB flash and have some space to spare :D These command are dangerous so please be careful or make a backup first. rm -r /usr/share/locale/* rm -r /usr/share/doc/* rm -r /usr/share/man/* rm -r /var/lib/apt/lists/* rm -r /var/log/* rm -r /tmp/* rm -r /var/cache/apt/* After this, you will have to first run 'apt update' in ordeby kalehrl - Debian
Which packages were uninstalled? I uninstalled some of them but not the essential ones. dpkg doesn't report any errors or missing dependencies. I also tried dpkg install -f but no packages are installed. I haven't touched halt scripts. I had a look at /etc/init.d folder and there are 2 halt scripts: halt and halt.dpkg-oldby kalehrl - uBoot
No problem. It's very easy to restore it. I uninstalled some packages and now shutdown -h now command reboots the box instead of powering it off. shutdown now powers it off but the blue LED is still on. Any ideas what package handles the shutdown functions?by kalehrl - uBoot
After: fw_setenv test_001 yes The box didn't boot so I had to import it from uEnv.txt file.by kalehrl - uBoot
Nope. Still the same: fw_printenv Warning: Bad CRC, using default environment bootargs= bootcmd= bootdelay=2 baudrate=115200 arch=sandbox cpu=sandbox board=sandbox board_name=sandbox stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipadby kalehrl - uBoot
U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700) HP Thin Client T5325 SoC: Kirkwood 88F6281_A1 SPI: ready DRAM: 512 MiB WARNING: Caches not enabled MMC: SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB In: serial Out: serial Err: serial Net: egiga0 88E3016 Initialized on egiga0 Hit any key to stop autoboot: 0 starting USB...by kalehrl - uBoot
Hi bodhi It seems to have worked out fine. When I issued saveenv command, there were some messages about erasing spi flash and it finished without any errors. :D Upon reboot, it booted fine in Debian. However, when in Debian I issue: cat /proc/mtd I get: dev: size erasesize name mtd0: 00080000 00010000 "u-boot" mtd1: 00040000 00010000 "SSD firmware" mtd2: 00by kalehrl - uBoot
bodhi Wrote: ------------------------------------------------------- > kalehrl, > > Try this script loading procedure: > > https://forum.doozan.com/read.php?3,29362,29390#msg-29390 > > 1. Note the difference in DTB file. This procedure > was written for the GoFlex Net. > > QuoteAdjust the other specific envs and then > boot the rootfs: > seteby kalehrl - uBoot
Again it lost the settings. root@debian:/home/kalehrl# picocom /dev/ttyUSB0 -b 115200 picocom v1.7 port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a local echo is : no noinit is : no noreset is : no nolock is : no send_cmd is : sz -vv receive_cmd is : rz -vv imap isby kalehrl - uBoot
I have no idea how all this happened. I was sure I didn't install the latest uboot correctly and in the process bricked the box. After a year, I tried booting the box and it started working fine with the latest uboot. It boggles the mind! I went back to the previous posts and clearly see the old uboot header from 2016. I'm trying to slim down the rootfs even further. Now it'by kalehrl - uBoot
Sure. root@debian:/home/kalehrl# picocom /dev/ttyUSB0 -b 115200 picocom v1.7 port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a local echo is : no noinit is : no noreset is : no nolock is : no send_cmd is : sz -vv receive_cmd is : rz -vv imap is : omap is :by kalehrl - uBoot
I actually tried to boot without kwboot and it worked miraculously! I remember I also moved rootfs to internal flash so I tried booting without USB flash drive and it also worked! I have no idea how it works now but not the last time I tried. Flash unlock command gives an error like before and I'm not sure environment is set up properly.by kalehrl - uBoot
Hi bodhi Just to let you know that I have dusted off my HP T5325, created a fresh rootfs, booted with kwboot and can start testing :Dby kalehrl - uBoot
Hi bodhi I'm still there to make some tests. I'll need to do some revision because I haven't touched the box for a year. Tell me what I need to do.by kalehrl - uBoot
Thank you bodhi and happy New Year. I will stow away the box for now but if you manage to fix the problem, I will be there to test it. Cheers!by kalehrl - uBoot
U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700) HP Thin Client T5325 SoC: Kirkwood 88F6281_A1 SPI: ready DRAM: 512 MiB WARNING: Caches not enabled MMC: SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB In: serial Out: serial Err: serial Net: egiga0 88E3016 Initialized on egiga0 Hit any key to stop autoboot: 0 T5325> usb startby kalehrl - uBoot
U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700) HP Thin Client T5325 SoC: Kirkwood 88F6281_A1 SPI: ready DRAM: 512 MiB WARNING: Caches not enabled MMC: SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB In: serial Out: serial Err: serial Net: egiga0 88E3016 Initialized on egiga0 Hit any key to stop autoboot: 0 printenv arcNumbby kalehrl - uBoot
I erased the /boot/uEnv.txt and after logging into Debian, the cat /proc/mtd is: dev: size erasesize name mtd0: 00080000 00010000 "uboot" mtd1: 00040000 00010000 "sdd_firmware" mtd2: 00010000 00010000 "uboot_env" mtd3: 00010000 00010000 "permanent_uboot_env" mtd4: 00010000 00010000 "hp_env" flash_unlock /dev/mtd0 flash_unlock: errby kalehrl - uBoot
No problem bodhi. It's just that I'm often not at the computer to post the log. U-Boot 2016.05-tld-1 (Jun 12 2016 - 14:06:08 -0700) HP Thin Client T5325 SoC: Kirkwood 88F6281_A1 SPI: ready DRAM: 512 MiB WARNING: Caches not enabled SF: Detected MX25L8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB In: serial Out: serial Err: serial Net: egiga0 Pby kalehrl - uBoot
I've already done those three steps and the printenv command shows the correct mdt partition layout. But after boot command and logging into debian, the kernel command line is the default one.by kalehrl - uBoot
Upon reboot and logging into Debian, the environment is lost. I checked the line and it read: mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env) but, upon booting into Debian, it reads: Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) I guess it doeby kalehrl - uBoot
dmesg: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: HP t5325by kalehrl - uBoot
Quotecat /proc/mtd dev: size erasesize name mtd0: 00080000 00010000 "uboot" mtd1: 00040000 00010000 "sdd_firmware" mtd2: 00010000 00010000 "uboot_env" mtd3: 00010000 00010000 "permanent_uboot_env" mtd4: 00010000 00010000 "hp_env" I keep getting: root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 00080000 000100by kalehrl - uBoot
Finally it booted. :) root@debian64:/home/kalehrl# picocom /dev/ttyUSB0 -b 115200 picocom v1.7 port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a local echo is : no noinit is : no noreset is : no nolock is : no send_cmd is : sz -vv receive_cmd is : rz -vv imap is :by kalehrl - uBoot
Nothing happens when I type 'boot'.by kalehrl - uBoot
I did what you wrote in that post. These are the contents of /boot/uEnv.txt I put on my rootfs: arcNumber=2097 bootcmd_exec=run load_uimage; 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_addby kalehrl - uBoot
The log is basically the same as the above one just with U-Boot-2016 in the header: HP Thin Client T5325 SoC: Kirkwood 88F6281_A1 SPI: ready DRAM: 512 MiB WARNING: Caches not enabled MMC: SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB In: serial Out: serial Err: serial Net: egiga0 88E3016 Initialized on egiga0 T5325> and thereby kalehrl - uBoot
No change: root@debian64:/home/kalehrl# kwboot -t -B 115200 /dev/ttyUSB0 -b /home/kalehrl/uboot.2017.07-tld-1.t5325.mtd0.kwb -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [.........................by kalehrl - uBoot
root@debian64:/home/kalehrl# kwboot -t -B 115200 /dev/ttyUSB0 -b /home/kalehrl/uboot.2017.07-tld-1.t5325.mtd0.kwb -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [.....................................by kalehrl - uBoot
I checked LEDE kirkwood list od supported devices and sadly HP t5325 isn't listed. Any ideas if it can be installed on t5325?by kalehrl - Rescue System