Welcome! Log In Create A New Profile

Advanced

Need help with creating USB for the new uBoot

Posted by jeyrey 
Need help with creating USB for the new uBoot
April 05, 2020 10:21AM
It has been many years ago that I installed debian on a dockstar using Jeff's instruction. I am familiar much with the unix command and only followed several step-by-step instruction to get things to work.

I have an old Pogo-B01 that I never used and want to put a new system into it. I have followed the steps to install new U-Boot but I did not do anything in step 11 because I did not understand how to do it. So I rebooted the box.

Quote

11. Required setup for default envs

This default envs image supports booting with multiple disk drives (and hubs) attached. The disk drives could be type (usb or sata). The scanning logic and default envs were set to automatically boot the box with the following required configuration:

r1. There must be only one partition among all partitions from all drives that contains the kernel files. The 2 kernel files are /boot/uImage and /boot/uInitrd.
r2. The partition that contains the 2 kernel files must be partition 1 in a disk drive
r3. The partition that contains the rootfs must be labeled rootfs
r4. The rootfs partition is recommended to be type Ext3 (this is not a hard requirement, ext4 should boot OK, but Ext3 will ensure no problem).

Now I am stuck as I don't have a working usb to boot it and it keeps rebooting itself. And if I stop autoboot, I would get the OX820> prompt.

U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820>

Can someone please guide me to the right place what I should do next or how do I create a USB stick for it?

I am accessing the box using a serial cable.



Edited 1 time(s). Last edit at 04/05/2020 10:31AM by jeyrey.
Re: Need help with creating USB for the new uBoot
April 05, 2020 10:30AM
I forgot to mentioned that I use a serial cable to access the box.
Re: Need help with creating USB for the new uBoot
April 05, 2020 05:44PM
jeyrey,

Create USB rootfs using Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 from the release thread:

https://forum.doozan.com/read.php?2,16044

Scroll down to

Quote

Updated 02 Aug 2017:

Rootfs Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded.

Basic Debian stretch Oxnas rootfs for Popo Pro/Classic V3 plug:

- tarball size: 180M
- install size: 477M
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, dialog, bz2, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, mtd-utils.
- see LED controls in /etc/rc.local, and /etc/rc0.d/K08halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2

Follow the instruction very closely. And then try booting with this new USB rootfs.

Note: with the new u-boot you have installed, you should be able to boot right away (no need to change more envs).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 04/05/2020 05:45PM by bodhi.
Re: Need help with creating USB for the new uBoot
April 05, 2020 07:51PM
Thank you so much, bodhi. I have followed the instruction and am now trying to boot from the stick for the first time. It is stuck at

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

for at least 15 minutes now, and still waiting. If this is not supposed to happen, please let me know so I can start over. Thanks.
Re: Need help with creating USB for the new uBoot
April 05, 2020 08:19PM
I tried to redo using ext3 instead of ext4 but still have the same problem.

# mkimage  -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-4.4.54-oxnas-tld-1' -d zImage.fdt  uImage

Image Name:   Linux-4.4.54-oxnas-tld-1
Created:      Mon Apr  6 08:11:42 2020
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4628835 Bytes = 4520.35 KiB = 4.41 MiB
Load Address: 60008000
Entry Point:  60008000
# sync

loading uInitrd ...
4594376 bytes read in 479 ms (9.1 MiB/s)
loading DTB /boot/dts/ox820-pogoplug-pro.dtb ...
7067 bytes read in 205 ms (33.2 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.54-oxnas-tld-1
   Created:      2020-04-06   1:11:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4628835 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-4.4.54-oxnas-tld-1
   Created:      2017-08-01   7:51:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4594312 Bytes = 4.4 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 679c5000, end 67e26a88 ... OK
   Loading Device Tree to 679c0000, end 679c4b9a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Or how long am I supposed to wait?
Re: Need help with creating USB for the new uBoot
April 05, 2020 08:35PM
One thing is that my box is POGO-B01 which is classic with no WIFI. Why is it loading the pro dtb? I have tried to change it in step 4 to classic already.

loading DTB /boot/dts/ox820-pogoplug-pro.dtb ...
Re: Need help with creating USB for the new uBoot
April 05, 2020 09:19PM
jeyrey,

Power up, interrupt serial console and

setenv dtb_file '/boot/dts/ox820-pogoplug-classic.dtb'
printenv
boot
And post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 05, 2020 11:41PM
I am getting it booting. And this is what I get. Is there anything I should fix?




Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4
.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Pogoplug V3 Classic
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 12 pages/cpu @c7eda000 s17696 r8192 d23264 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdpa
rts=41000000.nand:14m(boot),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 116204K/131072K available (6410K kernel code, 288K rwdata, 1908K rodat
a, 224K init, 247K bss, 14868K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0827e14   (8320 kB)
[    0.000000]       .init : 0xc0828000 - 0xc0860000   ( 224 kB)
[    0.000000]       .data : 0xc0860000 - 0xc08a8378   ( 289 kB)
[    0.000000]        .bss : 0xc08a8378 - 0xc08e6350   ( 248 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_i
dle_ns: 19112603332 ns
[    0.000007] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000161] Console: colour dummy device 80x30
[    0.000194] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050019] pid_max: default: 32768 minimum: 301
[    0.050199] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050216] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051031] Initializing cgroup subsys net_cls
[    0.051112] CPU: Testing write buffer coherency: ok
[    0.051532] Setting up static identity map for 0x60008220 - 0x60008258
[    0.190131] Brought up 2 CPUs
[    0.190154] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.190924] devtmpfs: initialized
[    0.195829] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19
112604462750000 ns
[    0.195875] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.196183] prandom: seed boundary self test passed
[    0.200601] prandom: 100 self tests passed
[    0.200629] pinctrl core: initialized pinctrl subsystem
[    0.201459] NET: Registered protocol family 16
[    0.202019] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.230016] cpuidle: using governor ladder
[    0.260011] cpuidle: using governor menu
[    0.264883] gpio-oxnas 44000000.gpio: at address c8848000
[    0.265290] gpio-oxnas 44100000.gpio: at address c884a000
[    0.265856] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.279544] vgaarb: loaded
[    0.280104] SCSI subsystem initialized
[    0.280970] usbcore: registered new interface driver usbfs
[    0.281077] usbcore: registered new interface driver hub
[    0.281231] usbcore: registered new device driver usb
[    0.281428] pps_core: LinuxPPS API ver. 1 registered
[    0.281443] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

[    0.281489] PTP clock support registered
[    0.283650] clocksource: Switched to clocksource rps_clocksource_timer
[    0.302443] NET: Registered protocol family 2
[    0.303316] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.303360] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.303395] TCP: Hash tables configured (established 1024 bind 1024)
[    0.303498] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.303541] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.303805] NET: Registered protocol family 1
[    0.304332] RPC: Registered named UNIX socket transport module.
[    0.304355] RPC: Registered udp transport module.
[    0.304366] RPC: Registered tcp transport module.
[    0.304376] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.304742] Unpacking initramfs...
[    0.779276] Freeing initrd memory: 4488K (c79c4000 - c7e26000)
[    0.780989] Initialise system trusted keyring
[    0.794844] zbud: loaded
[    0.800378] NFS: Registering the id_resolver key type
[    0.800440] Key type id_resolver registered
[    0.800453] Key type id_legacy registered
[    0.800499] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.800522] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.801495] fuse init (API version 7.23)
[    0.803507] Key type big_key registered
[    0.881945] Key type asymmetric registered
[    0.881976] Asymmetric key parser 'x509' registered
[    0.882119] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.882147] io scheduler noop registered
[    0.882165] io scheduler deadline registered
[    0.882229] io scheduler cfq registered (default)
[    0.882910] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.884403] console [ttyS0] disabled
[    0.884495] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 165
50A
[    1.410132] console [ttyS0] enabled
[    1.531020] loop: module loaded
[    1.550000] scsi host0: sata_oxnas
[    1.553845] ata1: SATA max UDMA/133 irq 7
[    1.557921] sata_oxnas: resetting SATA core
[    1.571097] nand: Could not find valid ONFI parameter page; aborting
[    1.577461] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.586296] nand: Hynix NAND 128MiB 3,3V 8-bit
[    1.590748] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.598292] Scanning device for bad blocks
[    1.685143] 2 cmdlinepart partitions found on MTD device 41000000.nand
[    1.691665] Creating 2 MTD partitions on "41000000.nand":
[    1.697041] 0x000000000000-0x000000e00000 : "boot"
[    1.721026] 0x000000e00000-0x000008000000 : "data"
[    1.741552] oxnas-gmac 40400000.ethernet: no reset control found
[    1.747540] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.752611]  Ring mode enabled
[    1.755648]  DMA HW capability register supported
[    1.760174]  Enhanced/Alternate descriptors
[    1.764505]  Enabled extended descriptors
[    1.768491]  RX Checksum Offload Engine supported (type 2)
[    1.773964]  TX Checksum insertion supported
[    1.778209]  Wake-Up On Lan supported
[    1.781867]  Enable RX Mitigation via HW Watchdog Timer
[    1.802296] libphy: stmmac: probed
[    1.805696] eth%d: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00) active
[    1.812234] eth%d: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    1.818892] PPP generic driver version 2.4.2
[    1.823779] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.830412] ehci-pci: EHCI PCI platform driver
[    1.835374] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.840957] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.848757] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.870026] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.876326] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.883141] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.890398] usb usb1: Product: EHCI Host Controller
[    1.895257] usb usb1: Manufacturer: Linux 4.4.54-oxnas-tld-1 ehci_hcd
[    1.901696] usb usb1: SerialNumber: 40200100.ehci
[    1.907368] hub 1-0:1.0: USB hub found
[    1.911278] hub 1-0:1.0: 2 ports detected
[    1.916375] usbcore: registered new interface driver cdc_acm
[    1.922065] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.930127] ata1: SATA link down (SStatus 0 SControl 310)
[    1.935695] usbcore: registered new interface driver cdc_wdm
[    1.941570] usbcore: registered new interface driver usb-storage
[    1.947724] usbcore: registered new interface driver usbserial
[    1.953720] usbcore: registered new interface driver usbserial_generic
[    1.960314] usbserial: USB Serial support registered for generic
[    1.966750] mousedev: PS/2 mouse device common for all mice
[    1.972526] i2c /dev entries driver
[    1.977295] hidraw: raw HID events driver (C) Jiri Kosina
[    1.982999] usbcore: registered new interface driver usbhid
[    1.988546] usbhid: USB HID core driver
[    1.994357] NET: Registered protocol family 10
[    2.010746] sit: IPv6 over IPv4 tunneling driver
[    2.016378] NET: Registered protocol family 17
[    2.021066] Key type dns_resolver registered
[    2.026767] registered taskstats version 1
[    2.030935] Loading compiled-in X.509 certificates
[    2.035829] zswap: loaded using pool lzo/zbud
[    2.054924] Key type encrypted registered
[    2.072821] Freeing unused kernel memory: 224K (c0828000 - c0860000)
Loading, please wait...
[    2.230069] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
starting version 232
[    2.261652] random: systemd-udevd: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.272911] random: systemd-udevd: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.274137] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.276380] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.276556] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy 
available)
[    2.277598] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy 
available)
[    2.281661] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy 
available)
[    2.282626] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy 
available)
[    2.283596] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy 
available)
[    2.284725] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy 
available)
[    2.442470] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.449154] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.475950] usb 1-1: Product: USB2.0 Hub
[    2.486871] hub 1-1:1.0: USB hub found
[    2.500618] hub 1-1:1.0: 4 ports detected
[    2.800107] usb 1-1.4: new high-speed USB device number 3 using oxnas-ehci
[    2.936670] usb 1-1.4: New USB device found, idVendor=1567, idProduct=8902
[    2.943572] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.950896] usb 1-1.4: Product: USB Product String123456
[    2.956185] usb 1-1.4: Manufacturer: USB Flash Disk
[    2.961067] usb 1-1.4: SerialNumber: 121030032032
[    2.969820] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    2.976739] scsi host1: usb-storage 1-1.4:1.0
[    2.997690] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[    3.982149] scsi 1:0:0:0: Direct-Access     SCSIDISK SCSI_DISK_1234   1.00 PQ: 0 ANSI: 4
[    3.993090] sd 1:0:0:0: [sda] 7880704 512-byte logical blocks: (4.03 GB/3.76 GiB)
[    4.003182] sd 1:0:0:0: [sda] Write Protect is off
[    4.009917] sd 1:0:0:0: [sda] No Caching mode page found
[    4.018081] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    4.042639]  sda: sda1
[    4.063659] sd 1:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1
rootfs: recovering journal
rootfs: clean, 14006/246512 files, 139119/984832 blocks
done.
[   23.431644] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   23.760168] random: nonblocking pool is initialized
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   27.354329] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating swap...done.
[   27.354329] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.29.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 
67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
Trying recorded lease 192.168.0.16
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1229 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting NTP server: ntpd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1227 (klogd)
. ok 

Debian GNU/Linux 9 debian ttyS0



Edited 1 time(s). Last edit at 04/05/2020 11:53PM by jeyrey.
Re: Need help with creating USB for the new uBoot
April 06, 2020 12:11AM
jeyrey,

That looks good! but what happened before this?

Starting kernel ...

You should post the entire serial console log as I asked above:

https://forum.doozan.com/read.php?3,99104,99179#msg-99179

So that I can see the booting activitities, and might point out something you have missed.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 06, 2020 12:43AM
Sorry that I did not understand what you meant before. Here it is the top part before "Starting kernel ..."

OX820> boot
starting USB...  
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset IDE: SATA PHY not ready for device 0
ide_preinit failed

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            7878656         f09ea20f-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb  
device usb 0:1   
1 bytes read in 200 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4621824 bytes read in 545 ms (8.1 MiB/s)
loading uInitrd ...
4594376 bytes read in 515 ms (8.5 MiB/s)
loading DTB /boot/dts/ox820-pogoplug-classic.dtb ...
7075 bytes read in 194 ms (35.2 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.54-oxnas-tld-1
   Created:      2017-08-01   4:45:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4621760 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-4.4.54-oxnas-tld-1
   Created:      2017-08-01   7:51:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4594312 Bytes = 4.4 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 679c4000, end 67e25a88 ... OK
   Loading Device Tree to 679bf000, end 679c3ba2 ... OK

Starting kernel ...

Re: Need help with creating USB for the new uBoot
April 06, 2020 01:29AM
After restarting the box, it kept going back to the /boot/dts/ox820-pogoplug-pro.dtb version and I had to stop autoboot and setenv again. Where can I make it permanent?
Re: Need help with creating USB for the new uBoot
April 06, 2020 04:50AM
jeyrey,

Quote

Sorry that I did not understand what you meant before. Here it is the top part before "Starting kernel ..."

It is OK :) As usual, the consversation here is not just for you and me :) It is also for users who come later and searching for the solution. So that's why I asked to post everything. From the u-boot banner, at u-boot prompt and how you execute the commands to boot successfully.

Quote

After restarting the box, it kept going back to the /boot/dts/ox820-pogoplug-pro.dtb version and I had to stop autoboot and setenv again. Where can I make it permanent?

Here is how to make it permanent, since you have booted successfully.

Power up, interrupt serial console and

setenv dtb_file '/boot/dts/ox820-pogoplug-classic.dtb'
printenv
saveenv
boot

And this time please post the entire serial console log here. Meaning from u-boot banner until the Debian prompt. So we can record everything in your post, it will be very useful for future reference.

The log starts from:

Quote

U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
Boot device: NAND
Attempting to set PLLA to 850 MHz ...
plla_ctrl0 : 0000020a
plla_ctrl1 : 00330000
plla_ctrl2 : 0065008b
plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM: 128 MiB
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: dwmac.40400000
Hit any key to stop autoboot: 0
OX820>

Until

Quote

Debian GNU/Linux 9 debian ttyS0

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 06, 2020 05:43AM
Thank you Bodhi. Here's the log:


U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820   

DRAM:  128 MiB
NAND:  128 MiB
In:    serial 
Out:   serial 
Err:   serial 
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset IDE: SATA PHY not ready for device 0
ide_preinit failed

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            7819264         4e019590-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 199 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4621824 bytes read in 522 ms (8.4 MiB/s)
loading uInitrd ...
4595279 bytes read in 484 ms (9.1 MiB/s)
loading DTB /boot/dts/ox820-pogoplug-classic.dtb ...
7075 bytes read in 194 ms (35.2 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.54-oxnas-tld-1
   Created:      2017-08-01   4:45:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4621760 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-4.4.54-oxnas-tld-1
   Created:      2020-04-06   9:37:57 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4595215 Bytes = 4.4 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 679c4000, end 67e25e0f ... OK
   Loading Device Tree to 679bf000, end 679c3ba2 ... OK


Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Pogoplug V3 Classic
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 12 pages/cpu @c7eda000 s17696 r8192 d23264 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=41000000.nand:14m(boot),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 116204K/131072K available (6410K kernel code, 288K rwdata, 1908K rodata, 224K init, 247K bss, 14868K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0827e14   (8320 kB)
[    0.000000]       .init : 0xc0828000 - 0xc0860000   ( 224 kB)
[    0.000000]       .data : 0xc0860000 - 0xc08a8378   ( 289 kB)
[    0.000000]        .bss : 0xc08a8378 - 0xc08e6350   ( 248 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000007] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns   
[    0.000163] Console: colour dummy device 80x30
[    0.000194] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050019] pid_max: default: 32768 minimum: 301
[    0.050188] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050206] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051023] Initializing cgroup subsys net_cls
[    0.051105] CPU: Testing write buffer coherency: ok
[    0.051527] Setting up static identity map for 0x60008220 - 0x60008258
[    0.190131] Brought up 2 CPUs
[    0.190154] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.190935] devtmpfs: initialized
[    0.196180] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.196224] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.196533] prandom: seed boundary self test passed
[    0.200952] prandom: 100 self tests passed
[    0.200983] pinctrl core: initialized pinctrl subsystem
[    0.201815] NET: Registered protocol family 16
[    0.202383] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.230018] cpuidle: using governor ladder
[    0.260008] cpuidle: using governor menu
[    0.264936] gpio-oxnas 44000000.gpio: at address c8848000
[    0.265338] gpio-oxnas 44100000.gpio: at address c884a000
[    0.265937] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.279001] vgaarb: loaded
[    0.279485] SCSI subsystem initialized
[    0.280404] usbcore: registered new interface driver usbfs
[    0.280509] usbcore: registered new interface driver hub
[    0.280663] usbcore: registered new device driver usb
[    0.280849] pps_core: LinuxPPS API ver. 1 registered
[    0.280865] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.280911] PTP clock support registered
[    0.283064] clocksource: Switched to clocksource rps_clocksource_timer
[    0.301552] NET: Registered protocol family 2
[    0.302433] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.302476] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.302512] TCP: Hash tables configured (established 1024 bind 1024)
[    0.302609] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.302656] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.302917] NET: Registered protocol family 1
[    0.303449] RPC: Registered named UNIX socket transport module.
[    0.303472] RPC: Registered udp transport module.
[    0.303482] RPC: Registered tcp transport module.
[    0.303495] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.303889] Unpacking initramfs...
[    0.778677] Freeing initrd memory: 4488K (c79c4000 - c7e26000)
[    0.780408] Initialise system trusted keyring
[    0.813035] zbud: loaded
[    0.831352] NFS: Registering the id_resolver key type
[    0.831424] Key type id_resolver registered
[    0.831439] Key type id_legacy registered
[    0.831485] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.831508] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.832427] fuse init (API version 7.23)
[    0.834442] Key type big_key registered
[    0.911559] Key type asymmetric registered
[    0.911590] Asymmetric key parser 'x509' registered
[    0.911720] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.911746] io scheduler noop registered
[    0.911764] io scheduler deadline registered
[    0.911823] io scheduler cfq registered (default)
[    0.912450] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.913917] console [ttyS0] disabled
[    0.914012] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    1.439352] console [ttyS0] enabled
[    1.541125] loop: module loaded
[    1.560140] scsi host0: sata_oxnas
[    1.563991] ata1: SATA max UDMA/133 irq 7
[    1.568117] sata_oxnas: resetting SATA core
[    1.569162] nand: Could not find valid ONFI parameter page; aborting
[    1.569205] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.569210] nand: Hynix NAND 128MiB 3,3V 8-bit
[    1.569218] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.569236] Scanning device for bad blocks
[    1.650867] 2 cmdlinepart partitions found on MTD device 41000000.nand
[    1.657364] Creating 2 MTD partitions on "41000000.nand":
[    1.662776] 0x000000000000-0x000000e00000 : "boot"
[    1.681144] 0x000000e00000-0x000008000000 : "data"
[    1.688448] oxnas-gmac 40400000.ethernet: no reset control found
[    1.694479] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.699502]  Ring mode enabled
[    1.702556]  DMA HW capability register supported
[    1.707061]  Enhanced/Alternate descriptors
[    1.711408]  Enabled extended descriptors
[    1.715394]  RX Checksum Offload Engine supported (type 2)
[    1.720860]  TX Checksum insertion supported
[    1.725104]  Wake-Up On Lan supported
[    1.728742]  Enable RX Mitigation via HW Watchdog Timer
[    1.765027] libphy: stmmac: probed
[    1.768424] eth%d: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00) active
[    1.774878] eth%d: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    1.781575] PPP generic driver version 2.4.2
[    1.786421] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.792975] ehci-pci: EHCI PCI platform driver
[    1.797880] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.803432] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.811287] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.830146] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.836482] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.843292] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.850508] usb usb1: Product: EHCI Host Controller
[    1.855367] usb usb1: Manufacturer: Linux 4.4.54-oxnas-tld-1 ehci_hcd
[    1.861800] usb usb1: SerialNumber: 40200100.ehci
[    1.867420] hub 1-0:1.0: USB hub found
[    1.871283] hub 1-0:1.0: 2 ports detected
[    1.876387] usbcore: registered new interface driver cdc_acm
[    1.882060] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.890173] usbcore: registered new interface driver cdc_wdm
[    1.895976] usbcore: registered new interface driver usb-storage
[    1.902164] usbcore: registered new interface driver usbserial
[    1.908032] usbcore: registered new interface driver usbserial_generic
[    1.914629] usbserial: USB Serial support registered for generic
[    1.921080] mousedev: PS/2 mouse device common for all mice
[    1.926809] i2c /dev entries driver
[    1.931617] hidraw: raw HID events driver (C) Jiri Kosina
[    1.937226] usbcore: registered new interface driver usbhid
[    1.942809] usbhid: USB HID core driver
[    1.948712] NET: Registered protocol family 10
[    1.960033] ata1: SATA link down (SStatus 0 SControl 310)
[    1.970752] sit: IPv6 over IPv4 tunneling driver
[    1.976366] NET: Registered protocol family 17
[    1.981324] Key type dns_resolver registered
[    1.986892] registered taskstats version 1
[    1.991045] Loading compiled-in X.509 certificates
[    1.995934] zswap: loaded using pool lzo/zbud
[    2.014873] Key type encrypted registered
[    2.021944] Freeing unused kernel memory: 224K (c0828000 - c0860000)
Loading, please wait...
starting version 232
[    2.200227] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
[    2.211880] random: systemd-udevd: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.215114] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.217395] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.217569] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.218590] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.222661] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.223618] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.224535] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.225605] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.227036] random: udevadm: uninitialized urandom read (16 bytes read, 0 bits of entropy available)
[    2.392266] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.398952] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.426536] usb 1-1: Product: USB2.0 Hub
[    2.438246] hub 1-1:1.0: USB hub found
[    2.450644] hub 1-1:1.0: 4 ports detected
[    2.740311] usb 1-1.2: new high-speed USB device number 3 using oxnas-ehci
[    2.861434] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5573
[    2.868288] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.875596] usb 1-1.2: Product: Staples
[    2.879418] usb 1-1.2: Manufacturer:
[    2.885760] usb 1-1.2: SerialNumber: 4C532000071021103273
[    2.895121] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    2.901985] scsi host1: usb-storage 1-1.2:1.0
[    2.923246] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[    3.901434] scsi 1:0:0:0: Direct-Access     Staples                   1.22 PQ: 0 ANSI: 5   
[    3.914460] sd 1:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.73 GiB)
[    3.925931] sd 1:0:0:0: [sda] Write Protect is off
[    3.932177] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.954490]  sda: sda1
[    3.973514] sd 1:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1
rootfs: recovering journal
rootfs: clean, 14118/244800 files, 218960/977408 blocks
done.
[   13.421667] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   17.375180] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   18.320309] random: nonblocking pool is initialized
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.29.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[....] Configuring network interfaces...Cannot find device "wlan0"
ifup: failed to bring up wlan0
failed.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1235 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1234 (klogd)  
. ok 

Debian GNU/Linux 9 debian ttyS0

debian login:


As you may notice, I am trying to setup a wifi dongle. It is rtl8188eus from Realtek. I used this one on my dockstar (debian wheezy) but still could not find the driver for the stretch yet. I don't remember exactly how I did it since it was a decade ago. If you have any advice or if it is possible to just copy from the dockstar over, please let me know. Here is the message I got after plugging it in.


[  721.410170] usb 1-1.3: new high-speed USB device number 4 using oxnas-ehci
[  721.521310] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=8179
[  721.528163] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  721.535516] usb 1-1.3: Product: 802.11n NIC
[  721.539688] usb 1-1.3: Manufacturer: Realtek
[  721.544112] usb 1-1.3: SerialNumber: 000B81953DAC
Re: Need help with creating USB for the new uBoot
April 06, 2020 06:15AM
jeyrey,

Looks great!


> As you may notice, I am trying to setup a wifi
> dongle. It is rtl8188eus from Realtek. I used this
> one on my dockstar (debian wheezy) but still could
> not find the driver for the stretch yet. I don't
> remember exactly how I did it since it was a
> decade ago. If you have any advice or if it is
> possible to just copy from the dockstar over,

I don't recall which wifi drivers we have on this OXNAS kernel. I'll have to look inside the box or when I have a chance to look in the kernel source tree.

It does not hurt to try, Debian wheezy is relatively new, it might work.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 04/06/2020 06:16AM by bodhi.
Re: Need help with creating USB for the new uBoot
April 06, 2020 06:03PM
I spent yesterday but was unable to get the wifi working yet as I don't remember how I did it years ago. But now I have another POGO-E02 box that I updated the uboot (U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)) years ago but it won't boot. So I put it in the closet. I don't have the USB stick I put debian in years ago so I am using the one above that I prepared for the POGO-B01 instead. This is what happen when we boot:

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
ping - send ICMP ECHO_REQUEST to network host

Usage:
ping pingAddress
Hit any key to stop autoboot:  0 
PogoE02> boot
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
4621824 bytes read in 465 ms (9.5 MiB/s)
EHCI timed out on TD - token=0x1e008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
 ** ext4fs_devread read error - block
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.54-oxnas-tld-1
   Created:      2017-08-01   4:45:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4621760 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x831 from environment

Starting kernel ...

So I want to update the new uboot 2017.07 U-Boot Kirkwood on this one. I am stuck from step one.

Quote
1. uBoot envs config should be defined as followed in your /etc/fw_env.config

cat /etc/fw_env.config
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000

- And your mtd partitions should be:

cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 0db00000 00020000 "data"

Note: for boxes such as Pogo V4 and Zyxel NSA3xx, the mtd partition definition are kept the same as stock definition, therefore is different from the one above.

If you don't have /etc/fw_env.config file in your system then go ahead and create this file with the above content. MTD parts are not important for booting and it can be adjusted later. For users who like to keep the stock mtd definition, there is no need to adjust it to the above definition. As long as mtd0 is defined as 1MB (0x00100000) or greater then it will be OK:
mtd0: 00100000 00020000 "u-boot"


I don't have the /proc/mtd. Could you please guide me to the right place for flashing?
Re: Need help with creating USB for the new uBoot
April 06, 2020 06:46PM
jeyrey,

This box is different. The rootfs is Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

https://forum.doozan.com/read.php?2,12096
Quote

Latest released rootfs: Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (25 Aug 2019)

It is OK to use U-Boot 2014.07-tld-1. Get it boot into Debian and then flash new u-boot 2017.07-tld-1.

You should use a different USB to create the new rootfs. And use Ext3 partition.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 06, 2020 06:51PM
Thank you bodhi for the prompt response. Anywhere I can an image of a working kernel for a usb stick that I can use to boot into Debian? I don't have a working USB stick for this box right now.
Re: Need help with creating USB for the new uBoot
April 06, 2020 07:30PM
Hi bodhi, I have created a stick and cold boot the box. This is what I am getting. It is stuck.


U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
ping - send ICMP ECHO_REQUEST to network host

Usage:
ping pingAddress
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
4973786 bytes read in 591 ms (8 MiB/s)
9713936 bytes read in 787 ms (11.8 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-04-07   1:01:21 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4973722 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


Here is the printenv response:

PogoE02> printenv
arcNumber=3542
arcnumber=3542
baudrate=115200
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=XX:XX:XX:XX:XX:XX
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=831
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then boo
tm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot=run if_netconsole start_netconsole
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext2
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then 
bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 2233/131068 bytes
PogoE02>

I also tried
setenv dtb_file '/boot/dts/kirkwood-pogo-e02.dtb'

but that did not help.



Edited 4 time(s). Last edit at 04/06/2020 08:41PM by jeyrey.
Re: Need help with creating USB for the new uBoot
April 06, 2020 08:59PM
jeyrey,

> Hi bodhi, I have created a stick and cold boot the
> box. This is what I am getting. It is stuck.

> I also tried
>
> setenv dtb_file '/boot/dts/kirkwood-pogo-e02.dtb'
>
>
> but that did not help.

Ah, it was because back then, U-Boot 2014.07-tld-1 was still not set up to boot with the separated DTB.


So when you create USB rootfs now, you need to do Step 4b:

Quote

4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD). Again, this step 4b is for stock U-Boot only.

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.

Generate the uImage and uInitrd (the kernel files vmlinuz-5.5.1-kirkwood-tld-1 and initrd.img-5.5.1-kirkwood-tld-1 were generated by dpkg in Step 3):
cd /boot
mv uImage uImage.orig
mv uInitrd uInitrd.orig
cp -a zImage-5.5.1-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.5.1-kirkwood-tld-1 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.5.1-kirkwood-tld-1 -d initrd.img-5.5.1-kirkwood-tld-1 uInitrd

After it booted into Debian, you can install new u-boot, and then reverse Step 4b to boot with separate DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 06, 2020 09:33PM
Hi bodhi,

Still no go. It's stuck. Not sure what I did wrong. I followed the first 3 steps earlier and then switched to 4b as you suggested except that I changed 5.5.1 to 5.2.9 everywhere in the script. It does not look any different from before.

Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
4973786 bytes read in 461 ms (10.3 MiB/s)
9713936 bytes read in 750 ms (12.4 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-04-07   2:25:20 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4973722 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2020-04-07   2:26:10 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.



Edited 2 time(s). Last edit at 04/06/2020 11:35PM by jeyrey.
Re: Need help with creating USB for the new uBoot
April 07, 2020 05:15AM
jeyrey,

Power up, interrupt u-boot at count down, and,

setenv set_bootargs_usb 'setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts earlyprintk=serial'
boot

And post the entire serial console log here (in both cases, whether it boots successfully or not).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 07, 2020 06:24AM
Hi bodhi, Here is where it is stuck.


U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
ping - send ICMP ECHO_REQUEST to network host

Usage:
ping pingAddress
Hit any key to stop autoboot:  0
PogoE02> setenv set_bootargs_usb 'setenv bootargs console=$console root=$usb_roo
t rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts earlyprintk=serial'
PogoE02> boot
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
4973786 bytes read in 591 ms (8 MiB/s)
9713936 bytes read in 790 ms (11.7 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-04-07  11:13:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4973722 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2020-04-07  11:16:08 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc 
version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 
PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr
=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: CloudEngines Pogoplug E02
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65
024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/sda1 
rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootf
s),-(data) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 
bytes)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 by
tes)
[    0.000000][    T0] Memory: 234804K/262144K available (9216K kernel code, 868
K rwdata, 3400K rodata, 1024K init, 301K bss, 27340K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x3
8c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay i
s 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycl
es: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps eve
ry 10737418237ns
[    0.008603][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015992][    T0] Console: colour dummy device 80x30
[    0.021246][    T0] Calibrating delay loop (skipped), value calculated using
timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032569][    T0] pid_max: default: 32768 minimum: 301
[    0.038281][    T0] LSM: Security Framework initializing
[    0.043852][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 byte
s)
[    0.051256][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
 bytes)
[    0.059936][    T0] *** VALIDATE proc ***
[    0.064221][    T0] *** VALIDATE cgroup1 ***
[    0.068523][    T0] *** VALIDATE cgroup2 ***
[    0.072947][    T0] CPU: Testing write buffer coherency: ok
[    0.080343][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.087529][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.093746][    T1] rcu: Hierarchical SRCU implementation.
[    0.102617][    T1] devtmpfs: initialized
[    0.111971][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffff
ffff, max_idle_ns: 19112604462750000 ns
[    0.122638][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.129796][    T1] xor: measuring software checksum speed
[    0.228628][    T1]    arm4regs  :  1083.600 MB/sec
[    0.328628][    T1]    8regs     :   650.400 MB/sec
[    0.428627][    T1]    32regs    :   945.600 MB/sec
[    0.433541][    T1] xor: using function: arm4regs (1083.600 MB/sec)
[    0.439875][    T1] prandom: seed boundary self test passed
[    0.449706][    T1] prandom: 100 self tests passed
[    0.454527][    T1] pinctrl core: initialized pinctrl subsystem
[    0.461940][    T1] NET: Registered protocol family 16
[    0.467728][    T1] DMA: preallocated 256 KiB pool for atomic coherent alloca
tions
[    0.476196][    T1] audit: initializing netlink subsys (disabled)
[    0.483650][   T14] audit: type=2000 audit(0.470:1): state=initialized audit_
enabled=0 res=1
[    0.492278][    T1] cpuidle: using governor ladder
[    0.497168][    T1] cpuidle: using governor menu
[    0.502462][    T1] Feroceon L2: Enabling L2
[    0.506797][    T1] Feroceon L2: Cache support initialised.
[    0.517874][    T1] No ATAGs?
[    2.568610][    C0] random: fast init done
[    6.482799][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    6.489374][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    6.668932][    T1] raid6: int32x8  gen()   127 MB/s
[    6.839038][    T1] raid6: int32x8  xor()    86 MB/s
[    7.009033][    T1] raid6: int32x4  gen()   129 MB/s
[    7.178889][    T1] raid6: int32x4  xor()    83 MB/s
[    7.348808][    T1] raid6: int32x2  gen()   132 MB/s
[    7.518921][    T1] raid6: int32x2  xor()    94 MB/s
[    7.689171][    T1] raid6: int32x1  gen()   100 MB/s
[    7.858886][    T1] raid6: int32x1  xor()    68 MB/s
[    7.863873][    T1] raid6: using algorithm int32x2 gen() 132 MB/s
[    7.870011][    T1] raid6: .... xor() 94 MB/s, rmw enabled
[    7.875522][    T1] raid6: using intx1 recovery algorithm
[    7.881220][    T1] vgaarb: loaded
[    7.885145][    T1] SCSI subsystem initialized
[    7.890141][    T1] usbcore: registered new interface driver usbfs
[    7.896406][    T1] usbcore: registered new interface driver hub
[    7.902562][    T1] usbcore: registered new device driver usb
[    7.908513][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.914219][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodol
fo Giometti <giometti@linux.it>
[    7.924121][    T1] PTP clock support registered
[    7.930161][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.974372][    T1] VFS: Disk quotas dquot_6.6.0
[    8.979101][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 
bytes)
[    8.996707][    T1] NET: Registered protocol family 2
[    9.002670][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 
0, 4096 bytes)
[    9.011159][    T1] TCP established hash table entries: 2048 (order: 1, 8192 
bytes)
[    9.018872][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    9.026029][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    9.033248][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    9.039825][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    9.047075][    T1] NET: Registered protocol family 1
[    9.052832][    T1] RPC: Registered named UNIX socket transport module.
[    9.059481][    T1] RPC: Registered udp transport module.
[    9.064989][    T1] RPC: Registered tcp transport module.
[    9.070438][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.077607][    T1] PCI: CLS 0 bytes, default 32
[    9.082503][    T1] Trying to unpack rootfs image as initramfs...
[    9.088627][    T1] Initramfs unpacking failed: invalid magic at start of com
pressed archive
[    9.123887][    T1] Freeing initrd memory: 9488K
[    9.128766][    T1] NetWinder Floating Point Emulator V0.97 (double precision
)
[    9.137237][    T1] Initialise system trusted keyrings
[    9.142483][    T1] Key type blacklist registered
[    9.147407][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    9.154751][    T1] zbud: loaded
[    9.159102][    T1] NFS: Registering the id_resolver key type
[    9.164992][    T1] Key type id_resolver registered
[    9.169894][    T1] Key type id_legacy registered
[    9.174681][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering
...
[    9.182169][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.189546][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat
, Inc.
[    9.197579][    T1] fuse: init (API version 7.31)
[    9.202733][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.210080][    T1] orangefs_init: module version upstream loaded
[    9.216231][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, 
no debug enabled
[    9.227958][    T1] async_tx: api initialized (async)
[    9.233118][    T1] Key type asymmetric registered
[    9.237928][    T1] Asymmetric key parser 'x509' registered
[    9.243645][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded 
(major 246)
[    9.252940][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.268217][    T1] loop: module loaded
[    9.273836][    T1] libphy: Fixed MDIO Bus: probed
[    9.279347][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Drive
r
[    9.286702][    T1] ehci-pci: EHCI PCI platform driver
[    9.291942][    T1] ehci-orion: EHCI orion driver
[    9.296865][    T1] usbcore: registered new interface driver usb-storage
[    9.303991][    T1] mousedev: PS/2 mouse device common for all mice
[    9.310616][    T1] i2c /dev entries driver
[    9.315403][    T1] device-mapper: uevent: version 1.0.3
[    9.321099][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialis
ed: dm-devel@redhat.com
[    9.330716][    T1] device-mapper: multipath round-robin: version 1.2.0 loade
d
[    9.337973][    T1] device-mapper: multipath queue-length: version 0.2.0 load
ed
[    9.345381][    T1] device-mapper: multipath service-time: version 0.3.0 load
ed
[    9.352836][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.359661][    T1] device-mapper: raid: Loading target version 1.14.0
[    9.366357][    T1] kirkwood-cpufreq kirkwood-cpufreq: Unable to get cpuclk
[    9.373410][    T1] kirkwood-cpufreq: probe of kirkwood-cpufreq failed with e
rror -22
[    9.381728][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    9.388166][    T1] drop_monitor: Initializing network drop monitor service
[    9.395511][    T1] NET: Registered protocol family 17
[    9.400950][    T1] Key type dns_resolver registered
[    9.406835][    T1] registered taskstats version 1
[    9.411684][    T1] Loading compiled-in X.509 certificates
[    9.417267][    T1] zswap: loaded using pool lzo/zbud
[    9.437491][    T1] Key type big_key registered
[    9.445502][    T1] Key type encrypted registered
[    9.452294][    T1] hctosys: unable to open rtc device (rtc0)
[   11.844280][    T1] Unable to handle kernel paging request at virtual address
 d0000004
[   11.852246][    T1] pgd = (ptrval)
[   11.855662][    T1] [d0000004] *pgd=00000000
[   11.859957][    T1] Internal error: Oops: 5 [#1] PREEMPT ARM
[   11.865638][    T1] Modules linked in:
[   11.869410][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.9-kirkwood-tl
d-1 #1
[   11.877095][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   11.884089][    T1] PC is at crc32_be+0xac/0x160
[   11.888720][    T1] LR is at 0xd0000000
[   11.892575][    T1] pc : [<c06214c0>]    lr : [<d0000000>]    psr: 80000053
[   11.899567][    T1] sp : cf88bed0  ip : 00000007  fp : c0e57838
[   11.905514][    T1] r10: c0fd9300  r9 : c0fd9300  r8 : 00000000
[   11.911463][    T1] r7 : 00000000  r6 : 565629fc  r5 : 71c0daf0  r4 : c149588
0
[   11.918718][    T1] r3 : c0a6f7b0  r2 : b2285660  r1 : f0defde0  r0 : d68e4b5
9
[   11.925974][    T1] Flags: Nzcv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Seg
ment none
[   11.933925][    T1] Control: 0005397f  Table: 00004000  DAC: 00000053
[   11.940395][    T1] Process swapper (pid: 1, stack limit = 0x(ptrval))
[   11.946953][    T1] Stack: (0xcf88bed0 to 0xcf88c000)
[   11.952031][    T1] bec0:                                     f0defde7 c101e6
04 c0f04028 c0e449a8
[   11.960946][    T1] bee0: 00000000 c0e449e8 ffffe000 c0fb44a0 c0f04028 c01035
2c c0ca5039 c0136908
[   11.969857][    T1] bf00: c0168fd0 c0f04000 00000000 c0e004a4 c0d4ffb4 000000
e6 00000007 00000007
[   11.978769][    T1] bf20: 00000000 c0d511ac 000000e5 c0d511ac c0fb44a0 cfffce
3f cfffce4b e160994a
[   11.987681][    T1] bf40: 00000000 e160994a cfffcdc0 00000008 c0e65d6c 000000
e6 c0fb44a0 c0e57834
[   11.996592][    T1] bf60: c0fd9300 c0e011e8 00000007 00000007 00000000 c0e004
a4 00000000 00000000
[   12.005504][    T1] bf80: c09dced8 00000000 c09dced8 00000000 00000000 000000
00 00000000 00000000
[   12.014415][    T1] bfa0: 00000000 c09dcee0 00000000 c01010e0 00000000 000000
00 00000000 00000000
[   12.023327][    T1] bfc0: 00000000 00000000 00000000 00000000 00000000 000000
00 00000000 00000000
[   12.032239][    T1] bfe0: 00000000 00000000 00000000 00000000 00000013 000000
00 00000000 00000000
[   12.041167][    T1] [<c06214c0>] (crc32_be) from [<c0e449e8>] (of_fdt_raw_init+0x40/0x84)
[   12.049391][    T1] [<c0e449e8>] (of_fdt_raw_init) from [<c010352c>] (do_one_initcall+0xbc/0x220)
[   12.058311][    T1] [<c010352c>] (do_one_initcall) from [<c0e011e8>] (kernel_init_freeable+0x290/0x2dc)
[   12.067754][    T1] [<c0e011e8>] (kernel_init_freeable) from [<c09dcee0>] (kernel_init+0x8/0x10c)
[   12.076670][    T1] [<c09dcee0>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[   12.084973][    T1] Exception stack(0xcf88bfb0 to 0xcf88bff8)
[   12.090747][    T1] bfa0:                                     00000000 00000000 00000000 00000000
[   12.099662][    T1] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   12.108572][    T1] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   12.115917][    T1] Code: e0230420 1afffff7 eb0e82bc e8bd81f0 (e59e6004) 
[   12.122736][    T1] ---[ end trace 6ce7bcae0bcc8616 ]---
[   12.128339][    T1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[   12.136734][    T1] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---



Edited 1 time(s). Last edit at 04/07/2020 06:40AM by jeyrey.
Re: Need help with creating USB for the new uBoot
April 07, 2020 10:46AM
OK bodhi, when I flashed the uboot years ago, I also had created a usb stick to go with it but I never booted successfully as I didn't have a serial cable at the time. Luckily I never deleted it. After stuck with the new rootfs above, I have tried the old USB stick and new I am in debian. Here is its version:
root@debian:~# uname -a
Linux debian 2.6.32-5-kirkwood #1 Tue May 13 17:59:08 UTC 2014 armv5tel GNU/Linux

So I tried to follow the steps to flash the 2017.07 U-Boot Kirkwood. I am now at step 4
Quote
4. Be sure there is no bad block in the first 1M of your NAND (check dmesg). This is very important, if there is bad block in the first 1M (8 blocks), don't flash u-boot, because you will almost certainly brick your box. Please post your question here (there is a work around for it).

Example of bad block in mtd0:
dmesg | grep -i 'bad'

[ 2.413231] Scanning device for bad blocks
[ 2.417731] Bad eraseblock 3 at 0x000000060000

This bad block is the 4th block which resides within mtd0 (block 0 to block 7). So u-boot should not be flashed.

This is what mine gave:
root@debian:~# dmesg | grep -i 'bad'
[   22.284760] Scanning device for bad blocks
[   22.289172] Bad eraseblock 7 at 0x0000000e0000
It said that I should not flash the uboot. What should I do with it now?
Re: Need help with creating USB for the new uBoot
April 07, 2020 05:33PM
jeyrey,

> root@debian:~# uname -a
> Linux debian 2.6.32-5-kirkwood #1 Tue May 13
> 17:59:08 UTC 2014 armv5tel GNU/Linux

Cool! that will be adequate for installation of new u-boot and rootfs. The previous error was easy to fix, but it is OBE now.

> This is what mine gave:
>
> root@debian:~# dmesg | grep -i 'bad'
> [   22.284760] Scanning device for bad blocks
> [   22.289172] Bad eraseblock 7 at 0x0000000e0000
>

> It said that I should not flash the uboot. What
> should I do with it now?

You can flash u-boot image and u-boot env image. The bad block 7 is OK (It is reserved for future growth).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 04/07/2020 05:34PM by bodhi.
Re: Need help with creating USB for the new uBoot
April 07, 2020 11:55PM
Thanks bodhi. I have gone ahead and flashed the new uboot successfully! And here are what I did and encountered after that:

1. I was unable to reboot with the current usb stick (Linux debian 2.6.32-5-kirkwood). So I unpluged from the box and put it in my desktop to edit. Surprisingly, the stick was not recognized and I could not access it. This happened before and that was why I was unable to formatted for a few years. Somehow yesterday, I put it in the PC, it was detected and that was when I tried in again on the box and was able to boot and get into debian. So I think the USB stick is bad and am about to throw it away.

2. I then used the previous stick that I put Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi inside but was unable to boot earlier. Now it booted successfully. Yess!

3. The Debian-5.2.9 also detected my wireless adapter
[   27.480958] r8188eu 1-1.3:1.0 wlxxxxxxxxxxxxx: renamed from wlan0
but it renamed from wlan0 using the mac address. So it was not up by my current /etc/network/interfaces since it expected wlan0. So I am trying to prevent it from renaming by searching on the web and found that one way is to install grub. I was unable to install it:
root@debian:~# apt-get install grub
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package grub is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  grub2-common

E: Package 'grub' has no installation candidate
I am sure there are many other (simple) ways to disable name changing but I don't know. Can you advise on this which is the best method to get wlan0 back from name changing?

Also, is it possible to setup console via ip address and without a serial cable? If so, could you guide me to the right place? Many thanks.



Edited 1 time(s). Last edit at 04/08/2020 12:19AM by jeyrey.
Re: Need help with creating USB for the new uBoot
April 08, 2020 12:35AM
jeyrey,

> Thanks bodhi. I have gone ahead and flashed the
> new uboot successfully! And here are what I did
> and encountered after that:

Cool!


> 2. I then used the previous stick that I put
> Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi inside
> but was unable to boot earlier. Now it booted
> successfully. Yess!

That's how you suppose to do it. The new rootfs is ready made to boot with new u-boot.


> So I am trying to prevent it from renaming by
> searching on the web and found that one way is to
> install grub.

For ARM box such as this box, Grub does not apply. U-boot is the boot loader. You should be able to use the old naming convention. Let's see if I can find it.

Usually systemd will rename the network device names, but it does not apply here if you did not activate systemd.

> Also, is it possible to setup console via ip
> address and without a serial cable? If so, could
> you guide me to the right place? Many thanks.

Yes, that's netconsole. As stated in Step 10.

Quote

10. Set up netconsole. It's important to set up neconsole if you don't already have serial console connected. If you have serial console, don't set up netconsole at this moment, because it will interfere with serial console.

If you've flashed the default environments in step 8 then activate netconsole with the following envs:

Adjust 192.168.0.xxx and 192.168.0.yyy below to the real numbers in your network configuration. 192.168.0.xxx is this plug IP address, and 192.168.0.yyy is the IP address of the netconsole server where it will monitor the output from the this plug (adjust them to the real values in your own local network settings).

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'

If you have serial console and does not disconnect it, the output will go to netconsole and serial console, back and forth depending on where u-boot progress is (so you need 2 consoles to see all logging). So when testing netconsole, you should disconnect serial console and vice versa, to see the unified log.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 08, 2020 07:53PM
> Yes, that's netconsole. As stated in Step 10.
>
>
Quote

10. Set up netconsole. It's important to
> set up neconsole if you don't already have serial
> console connected. If you have serial console,
> don't set up netconsole at this moment, because it
> will interfere with serial console.
>
> If you've flashed the default environments in step
> 8 then activate netconsole with the following
> envs:
>
> Adjust 192.168.0.xxx and 192.168.0.yyy below to
> the real numbers in your network configuration.
> 192.168.0.xxx is this plug IP address, and
> 192.168.0.yyy is the IP address of the netconsole
> server where it will monitor the output from the
> this plug (adjust them to the real values in your
> own local network settings).
>
> 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'
>

I set this up on the pogoplug but I don't see anything on my computer. Which port should I use on the computer? This is what I am using
nc -l -u 9999 | tee ~/netconsole.log
Re: Need help with creating USB for the new uBoot
April 08, 2020 09:53PM
jeyrey,

> I set this up on the pogoplug but I don't see
> anything on my computer. Which port should I use
> on the computer? This is what I am using
>
> nc -l -u 9999 | tee ~/netconsole.log
>

That's the wrong command. Use:

nc -lup 6666 ip_addr 6666
where ip_addr is the IP address of the this box. In u-boot it is the env ipaddr. In Debian, it is the static IP in /etc/network/interfaces.

For example,

fw_printenv ipaddr
ipaddr=192.168.0.220

cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.0.220
        netmask 255.255.255.0
        gateway 192.168.0.1

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Need help with creating USB for the new uBoot
April 08, 2020 10:25PM
>
> That's the wrong command. Use:
>
>
> nc -lup 6666 ip_addr 6666
>

Thanks, bodhi. After this command I can see the netconsole. Is this supposed to happen that the netconsole is gone after Starting kernel...?

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -0700)
Pogo E02
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0 
Initializing devices...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
34 bytes read in 661 ms (0 Bytes/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 569 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5202928 bytes read in 1218 ms (4.1 MiB/s)
loading uInitrd ...
9760130 bytes read in 1441 ms (6.5 MiB/s)
10106 bytes read in 3598 ms (2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.5.1-kirkwood-tld-1
   Created:      2020-04-09   1:37:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5202864 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.5.1-kirkwood-tld-1
   Created:      2020-04-09   1:37:48 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9760066 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

read(net): Connection refused
Re: Need help with creating USB for the new uBoot
April 08, 2020 11:30PM
jeyrey,

> Thanks, bodhi. After this command I can see the
> netconsole. Is this supposed to happen that the
> netconsole is gone after Starting kernel...?

Yes. See the Wiki thread for how to enable more output:

https://forum.doozan.com/read.php?2,23630

Quote

Netconsole

Use netconsole to troubleshoot uBoot without a serial cable
Use netconsole to troubleshoot Debian kernel booting

-bodhi
===========================
Forum Wiki
bodhi's corner
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: