Flash U-Boot 5big2 after flash failure

Re: Flash U-Boot 5big2 after flash failure

Postby wvwaard » Tue Mar 21, 2023 8:58 am

Hi,

I think you are absolutly right that i really need to use or have a kwboot with the appropriate U-boot file.
Sadly the file you attached cannot be used for kwboot. I honestly dont know why. Propably because its not
in the right format as i presume its a dump from the nand of the machine and not a compiled kwb file.

I tried booting with boot u-boot systems that seems to work sort off. The nas2big doenst support the usb and ethernet
of the 5big2 when booting the fvdww kernel, and the 5big2 spi uboot isnt correctly setup for the nand mtd devices.
Both report on cat /proc/mtd but show different values ofcourse. For example the spi flash version seems limited to 32kb and wont let me write the 5big2 nand file ofcourse. I will try to change the mtparts with setenv and see if that works

So close but so far aways hahaha
wvwaard
Donator VIP
Donator VIP
 
Posts: 36
Joined: Thu Nov 28, 2013 9:11 am
Location: The Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby fvdw » Tue Mar 21, 2023 9:27 am

yes this 5big2-nand uboot is a dump of the flash memory. It doesn't has the right header to be used as "kwb". But I *think* I can adapt that

I am confused about this
he nas2big doenst support the usb and ethernet of the 5big2 when booting the fvdww kernel,

Which fvdw kernel did you boot and how did you do that ?
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby fvdw » Tue Mar 21, 2023 9:50 am

try this one for kwb boot.

Note do NOT write this version to flash memory as it has a wrong header
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby wvwaard » Tue Mar 21, 2023 10:48 am

Thanks so much going to give the file a try.

What i did is start the nas2big kwb file via Kwboot and boot the fvdw kernel.
BUT it couldnt load anything for nand flashing as i did not have access to USB not Ethernet.
It reports the low end drivers but the Usb and Eth0 dont come up even after doing ifconfig eth0 and
usb subsystem restart.

Walter
wvwaard
Donator VIP
Donator VIP
 
Posts: 36
Joined: Thu Nov 28, 2013 9:11 am
Location: The Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby fvdw » Tue Mar 21, 2023 10:50 am

fvdw kernel

Which kernel did you load?
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby wvwaard » Tue Mar 21, 2023 10:57 am

DMESG output whilst runing the nas2big Uboot that has NAND support

0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.14.2 (root@fvdwsl-5big2.local) (gcc version 4.8.1 (GCC) ) #171 PREEMPT Wed Jan 17 23:33:31 CET 2018
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: LaCie 2Big NAS
[ 0.000000] Ignoring unrecognised tag 0x41000403
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat c0982898, node_mem_map cfdfb000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 cap=gpt,lba64
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 249884K/262144K available (5950K kernel code, 220K rwdata, 1596K rodata, 1933K init, 233K bss, 12260K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0766b44 (7547 kB)
[ 0.000000] .init : 0xc0767000 - 0xc094a4cc (1934 kB)
[ 0.000000] .data : 0xc094c000 - 0xc0983100 ( 221 kB)
[ 0.000000] .bss : 0xc098310c - 0xc09bd56c ( 234 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000011] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 25769803770ns
[ 24.565536] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[ 24.655503] pid_max: default: 32768 minimum: 301
[ 24.655642] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 24.655662] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 24.656230] CPU: Testing write buffer coherency: ok
[ 24.656594] Setting up static identity map for 0x5a6ac0 - 0x5a6b18
[ 24.659277] VFP support v0.3: not present
[ 24.659869] xor: measuring software checksum speed
[ 24.755544] arm4regs : 1089.600 MB/sec
[ 24.855501] 8regs : 654.800 MB/sec
[ 24.955492] 32regs : 906.000 MB/sec
[ 24.955511] xor: using function: arm4regs (1089.600 MB/sec)
[ 24.955528] pinctrl core: initialized pinctrl subsystem
[ 24.955658] NET: Registered protocol family 16
[ 24.956023] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 24.959065] Kirkwood: MV88F6281-A1, TCLK=166666667.
[ 24.959093] Feroceon L2: Enabling L2
[ 24.959132] Feroceon L2: Cache support initialised.
[ 24.960228] mv_usb_init 1
[ 24.960247] mv_usb_init 2 devnum = 0
[ 24.960259] init function mv_usb_init finished
[ 24.960267] initial MPP regs: 01111111 00003311 00551100 00000000 00000000 00000000 00000000
[ 24.960299] orion_mpp_conf: requested MPP49 config unavailable on this hardware
[ 24.960305] final MPP regs: 01111111 00003311 00551100 00000000 00000000 00000000 00000000
[ 24.960633] orion-ehci registered
[ 24.962277] orion_gpio_is_valid: invalid GPIO 7
[ 24.962753] Kirkwood PCIe port 0: link down
[ 24.962763] Kirkwood PCIe port 1: link up
[ 24.962773] PCI: bus0 uses PCIe port 0
[ 24.963019] PCI host bridge to bus 0000:00
[ 24.963042] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[ 24.963055] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[ 24.963068] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 24.963108] pci 0000:00:00.0: [11ab:6281] type 00 class 0x058000
[ 24.963136] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit pref]
[ 24.963153] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0fffffff]
[ 24.963203] pci 0000:00:00.0: supports D1 D2
[ 24.963478] PCI: bus0: Fast back to back transfers disabled
[ 24.963497] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 24.963510] PCI: bus1 uses PCIe port 1
[ 24.963735] PCI host bridge to bus 0000:01
[ 24.963753] pci_bus 0000:01: root bus resource [mem 0xe8000000-0xefffffff]
[ 24.963766] pci_bus 0000:01: root bus resource [io 0x10000-0x1ffff]
[ 24.963779] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 24.963815] PCI: bus1: Fast back to back transfers enabled
[ 24.963828] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 24.987932] bio: create slab <bio-0> at 0
[ 25.156751] raid6: int32x1 95 MB/s
[ 25.325669] raid6: int32x2 123 MB/s
[ 25.495806] raid6: int32x4 120 MB/s
[ 25.665772] raid6: int32x8 128 MB/s
[ 25.665782] raid6: using algorithm int32x8 (128 MB/s)
[ 25.665790] raid6: using intx1 recovery algorithm
[ 25.666672] SCSI subsystem initialized
[ 25.667142] libata version 3.00 loaded.
[ 25.668033] usbcore: registered new interface driver usbfs
[ 25.668208] usbcore: registered new interface driver hub
[ 25.668402] usbcore: registered new device driver usb
[ 25.670919] cfg80211: Calling CRDA to update world regulatory domain
[ 25.671170] Switched to clocksource orion_clocksource
[ 25.673469] NET: Registered protocol family 2
[ 25.673963] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 25.674001] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 25.674035] TCP: Hash tables configured (established 2048 bind 2048)
[ 25.674091] TCP: reno registered
[ 25.674104] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 25.674127] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 25.674324] NET: Registered protocol family 1
[ 25.674611] RPC: Registered named UNIX socket transport module.
[ 25.674623] RPC: Registered udp transport module.
[ 25.674630] RPC: Registered tcp transport module.
[ 25.674637] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 25.674662] PCI: CLS 32 bytes, default 32
[ 25.820284] NetWinder Floating Point Emulator V0.97 (double precision)
[ 25.820443] gpio-usb-probe-4b err=0
[ 25.820460] gpio-usb gpio-usb: USB GPIO's initialized
[ 25.822121] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 25.923868] VFS: Disk quotas dquot_6.5.2
[ 25.923920] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 25.924359] NFS: Registering the id_resolver key type
[ 25.924431] Key type id_resolver registered
[ 25.924440] Key type id_legacy registered
[ 25.924458] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 25.924472] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 25.924573] NTFS driver 2.1.30 [Flags: R/W].
[ 25.924605] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 25.924752] fuse init (API version 7.22)
[ 25.925344] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[ 25.925816] msgmni has been set to 488
[ 25.926940] async_tx: api initialized (async)
[ 25.927137] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 25.927149] io scheduler noop registered
[ 25.927158] io scheduler deadline registered
[ 25.927177] io scheduler cfq registered (default)
[ 25.927569] mv_xor mv_xor.0: Marvell shared XOR driver
[ 25.965513] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 26.005507] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 26.005758] mv_xor mv_xor.1: Marvell shared XOR driver
[ 26.045508] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 26.085505] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 26.091351] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 26.112492] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 10416666) is a 16550A
[ 26.740187] console [ttyS0] enabled
[ 26.764254] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34, base_baud = 10416666) is a 16550A
[ 26.782306] brd: module loaded
[ 26.790043] loop: module loaded
[ 26.793479] Uniform Multi-Platform E-IDE driver
[ 26.798570] ide-gd driver 1.18
[ 26.803144] sata_mv sata_mv.0: version 1.28
[ 26.803212] sata_mv sata_mv.0: cannot get optional clkdev
[ 26.808917] sata_mv sata_mv.0: slots 32 ports 2
[ 26.816563] scsi0 : sata_mv
[ 26.819918] scsi1 : sata_mv
[ 26.823113] ata1: SATA max UDMA/133 irq 21
[ 26.827305] ata2: SATA max UDMA/133 irq 21
[ 26.833592] nand: Could not find valid ONFI parameter page; aborting
[ 26.840054] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[ 26.846484] nand: Hynix NAND 256MiB 3,3V 8-bit
[ 26.850908] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[ 26.856586] Scanning device for bad blocks
[ 26.921585] Bad eraseblock 767 at 0x000005fe0000
[ 27.027908] Creating 3 MTD partitions on "orion_nand":
[ 27.033025] 0x000000000000-0x000000100000 : "u-boot"
[ 27.039144] 0x000000100000-0x000001100000 : "uImage"
[ 27.045161] 0x000001100000-0x000010000000 : "root"
[ 27.053088] tun: Universal TUN/TAP device driver, 1.6
[ 27.058199] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 27.064546] ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[ 27.072956] ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[ 27.089382] libphy: orion_mdio_bus: probed
[ 27.093635] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 27.175490] ata1: SATA link down (SStatus 0 SControl F300)
[ 27.705484] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 27.725562] ata2.15: Port Multiplier 1.2, 0x11ab:0x4140 r193, 4 ports, feat 0x5/0x1f
[ 27.787058] ata2.00: hard resetting link
[ 28.136229] ata2.01: hard resetting link
[ 28.215261] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:4b:93:01:0e
[ 28.224109] PPP generic driver version 2.4.2
[ 28.228727] PPP Deflate Compression module registered
[ 28.233766] PPP MPPE Compression module registered
[ 28.238589] NET: Registered protocol family 24
[ 28.243205] usbcore: registered new interface driver rtl8187
[ 28.248940] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[ 28.256478] usbcore: registered new interface driver pegasus
[ 28.262308] usbcore: registered new interface driver asix
[ 28.267857] usbcore: registered new interface driver ax88179_178a
[ 28.274095] usbcore: registered new interface driver cdc_ether
[ 28.280079] usbcore: registered new interface driver net1080
[ 28.285939] usbcore: registered new interface driver cdc_subset
[ 28.292003] usbcore: registered new interface driver zaurus
[ 28.297764] usbcore: registered new interface driver ipheth
[ 28.303504] usbcore: registered new interface driver cdc_ncm
[ 28.310150] aoe: cannot create debugfs directory
[ 28.314894] aoe: AoE v85 initialised.
[ 28.319385] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 28.325375] i2c /dev entries driver
[ 28.329832] rtc-ds1307: probe of 0-0068 failed with error -5
[ 28.347530] gpio-fan gpio-fan: GPIO fan initialized
[ 28.354032] md: linear personality registered for level -1
[ 28.359531] md: raid0 personality registered for level 0
[ 28.364815] md: raid1 personality registered for level 1
[ 28.370192] md: raid10 personality registered for level 10
[ 28.376034] md: raid6 personality registered for level 6
[ 28.381318] md: raid5 personality registered for level 5
[ 28.386641] md: raid4 personality registered for level 4
[ 28.392130] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[ 28.400882] device-mapper: multipath: version 1.6.0 loaded
[ 28.406381] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 28.412880] device-mapper: multipath queue-length: version 0.1.0 loaded
[ 28.419586] device-mapper: multipath service-time: version 0.2.0 loaded
[ 28.426259] device-mapper: dm-log-userspace: version 1.3.0 loaded
[ 28.432320] device-mapper: raid: Loading target version 1.5.2
[ 28.440044] ipip: IPv4 over IPv4 tunneling driver
[ 28.445533] TCP: cubic registered
[ 28.448871] NET: Registered protocol family 10
[ 28.454173] sit: IPv6 over IPv4 tunneling driver
[ 28.459795] NET: Registered protocol family 17
[ 28.464492] NET: Registered protocol family 5
[ 28.469053] 8021q: 802.1Q VLAN Support v1.8
[ 28.473258] NET: Registered protocol family 37
[ 28.477900] Key type dns_resolver registered
[ 28.483319] console [netcon0] enabled
[ 28.487033] netconsole: network logging started
[ 28.491994] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 28.499492] ata2.02: hard resetting link
[ 28.504369] rtc-mv rtc-mv: setting system clock to 2023-03-21 11:26:59 UTC (1679398019)
[ 28.846232] ata2.03: hard resetting link
[ 29.196374] ata2: EH complete
[ 29.221510] Freeing unused kernel memory: 1932K (c0767000 - c094a000)
[ 30.315262] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 34.384675] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 34.394858] ehci-orion: EHCI orion driver
[ 34.399031] orion-ehci orion-ehci.0: EHCI Host Controller
[ 34.404435] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 34.412198] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 34.435480] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 34.441518] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 34.448292] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 34.455492] usb usb1: Product: EHCI Host Controller
[ 34.460348] usb usb1: Manufacturer: Linux 3.14.2 ehci_hcd
[ 34.465729] usb usb1: SerialNumber: orion-ehci.0
[ 34.471050] hub 1-0:1.0: USB hub found
[ 34.474838] hub 1-0:1.0: 1 port detected
[ 34.485559] usbcore: registered new interface driver usb-storage
[ 34.795500] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 34.945958] usb 1-1: New USB device found, idVendor=0424, idProduct=2512
[ 34.952630] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 34.960612] hub 1-1:1.0: USB hub found
[ 34.964453] hub 1-1:1.0: 2 ports detected
~ #
Last edited by wvwaard on Tue Mar 21, 2023 11:29 am, edited 1 time in total.
wvwaard
Donator VIP
Donator VIP
 
Posts: 36
Joined: Thu Nov 28, 2013 9:11 am
Location: The Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby fvdw » Tue Mar 21, 2023 11:06 am

:scratch think I need to compile uboot for 5big2 nand and generate kwb image. Will give that a try this afternoon. Always good to learn something.

About standalone kernel.
If that runs you should connect using telnet. (User: root pasw: giveit2me). Although serial console should work as well.
The standalone kernel runs from ram and should enable ethernet
When it is running what does
Code: Select all
dmesg

gives as output.
Also please explain how you loaded this kernel
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby wvwaard » Tue Mar 21, 2023 11:19 am

Wow that would be awesome. I was going to do that as a next step setting up
a cross compiler etc to compile my own version ...

Anyway. I will post the DMESG shortly.

The procedure i use is simple :

J2 pin header with 4 wires coming out the back to a TTL / UART USB device

USB fat formatted drive with Uimage kernel
kwboot -t -B 115200 (can be omitted) -b u-boot-nas2big...bin or 5big2-spi.bin -p /dev/ttyUSB0
Interrupt the U-boot loading
USB start
fatload usb 0:1 0x800000 uImage
bootm 0x800000

and voila the thing boots.

btw. i have tried and succeed als in installing and running debian latest from the armel tree
it runs like a charm even of a 128gb thumbdrive. Sadly ofcourse due to using the 5big2 spi I wasnt
able to use NAND in that as well hahaha

Debian can also be installed with the latest 6.10 kernel and Debian Initrd install image.
wvwaard
Donator VIP
Donator VIP
 
Posts: 36
Joined: Thu Nov 28, 2013 9:11 am
Location: The Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby fvdw » Tue Mar 21, 2023 11:50 am

compiler finished to make a fresh uboot kwb image
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Flash U-Boot 5big2 after flash failure

Postby wvwaard » Tue Mar 21, 2023 12:00 pm

YES !!

This version works. Now on to flashing the previous bin file.

Eager to know how you compiled the thing so fast !

Thanks !
wvwaard
Donator VIP
Donator VIP
 
Posts: 36
Joined: Thu Nov 28, 2013 9:11 am
Location: The Netherlands

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 3 guests

cron