Welcome! Log In Create A New Profile

Advanced

Installing U boot and Debian on ix2-ng

Posted by killerdude77 
killerdude77
Installing U boot and Debian on ix2-ng
May 06, 2021 06:50PM
Dear Bodhi,

I am trying to upgrade my NAS to new U boot and Debian Linux. I am not that great wizzkid with linux, but i know basic how to work with it.

I got UART working soo i can login by console, but from here i got a little stuck.

I download Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 but i don't get this working.

I also downloaded your linux tools linux-tools-installation-bodhi.tar.gz but i dont get them in /bin

Could you help me out here?

Do i have the right files?

I dont see ext2ls and ext2load soo i don't get it working.

Thanks already in advanced for all the help.


Best regards
Re: Installing U boot and Debian on ix2-ng
May 06, 2021 06:53PM
killerdude77,

You only need to post it once, creating this new thread is good. I'll remove the other posts.

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 06, 2021 06:57PM
The NAS is now working with ix2-ng-4.1.408.34845.tgz lifeline software, in there i already made SSH available.
Re: Installing U boot and Debian on ix2-ng
May 06, 2021 06:58PM
Deleted posts reposted here:


Quote

Dear Bodhi

I hope you still busy with this project. It is already 4 years ago that there was a last post.

I have the ix2-ng NAS and also want to install Debian on it. At this moment i have UART connection to console in U boot.
From here i got stuck, can you help me out with a list of the right files i need to get this done?

I also want to upgrade U boot but i dont get this working. I also miss the command files 'ext2ls' and 'ext2load' .

I downloaded your packet linux-tools-installation-bodhi.tar.gz but doesn't get this in /bin

You would help me a lot if i get this working on my NAS.

At this moment the NAS runs the last lifeline packet ix2-ng-4.1.408.34845.tgz

Thanks for all the help in advanced.

Best regards


Dear Bodhi,

I have an ix2-ng NAS and want to install new U boot and Debian. But i am a little bit stuck at UART serial U boot login.
All is working fine to connect to the NAS but i can't get U boot and Deabin installed.

At this moment the NAS is running ix2-ng-4.1.408.34845.tgz lifeline software from Lenovo.

I also downloaded your linux tools linux-tools-installation-bodhi.tar.gz but i dont get those installed in /bin

Because of this ext2ls and ext2load are not working.

Could you help me out which U boot i need and which kirkwood TLD i need.

I have Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 but doesn't get this working.

Could you help me out here?

Thanks in advacnced..

Best regards,

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 06, 2021 06:59PM
sorry Bodhi,

i got the message 'Sorry, you can't reply to this topic. It has been closed.'

Didn't know it post them. That is why i make new post.
Re: Installing U boot and Debian on ix2-ng
May 06, 2021 07:11PM
This is the post you need to read:

https://forum.doozan.com/read.php?2,70294,70794#msg-70794

In the tutorial jdwl101 was using 4.18.4-kirkwood-tld-1 at that time. But you can use Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the release thread:

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

I would do Part I to boot with USB rootfs first. This give you a working system.

Once it is working, then think about installing on the HDD (Part II).

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 05:29AM
Dear Bodhi.

After fixing everything and prepared the USB stick to work i don't get the USB booting.

After login in console via serial, i want to set env with setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'

setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
-sh: setenv: command not found
root@ix2:/# setenv
-sh: setenv: command not found

how can i fix that? if i try to apt-get update i get this

root@ix2:/# apt-get update
Ign http://security.debian.org wheezy/updates Release.gpg
Ign http://security.debian.org wheezy/updates Release
Err http://security.debian.org wheezy/updates/main armel Packages
404 Not Found [IP: 151.101.66.132 80]
Err http://security.debian.org wheezy/updates/contrib armel Packages
404 Not Found [IP: 151.101.66.132 80]
Ign http://security.debian.org wheezy/updates/contrib Translation-en
Ign http://security.debian.org wheezy/updates/main Translation-en
Ign http://ftp.us.debian.org wheezy Release.gpg
Ign http://ftp.us.debian.org wheezy Release
Err http://ftp.us.debian.org wheezy/main armel Packages
404 Not Found [IP: 208.80.154.15 80]
Err http://ftp.us.debian.org wheezy/contrib armel Packages
404 Not Found [IP: 208.80.154.15 80]
Err http://ftp.us.debian.org wheezy/non-free armel Packages
404 Not Found [IP: 208.80.154.15 80]
Ign http://ftp.us.debian.org wheezy/contrib Translation-en
Ign http://ftp.us.debian.org wheezy/main Translation-en
Ign http://ftp.us.debian.org wheezy/non-free Translation-en
W: Failed to fetch http://security.debian.org/dists/wheezy/updates/main/binary-armel/Packages 404 Not Found [IP: 151.101.66.132 80]

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/contrib/binary-armel/Packages 404 Not Found [IP: 151.101.66.132 80]

W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/main/binary-armel/Packages 404 Not Found [IP: 208.80.154.15 80]

W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/contrib/binary-armel/Packages 404 Not Found [IP: 208.80.154.15 80]

W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/non-free/binary-armel/Packages 404 Not Found [IP: 208.80.154.15 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Soo apt-get install u-boot-tools doesn't work.


Thanks for the advise.
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 05:34AM
I also see some errors coming up with starting U boot. Here is the log.

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** ix2-spi ** ** uboot_ver:0.0.8 **

** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:18:22) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 800Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Found ADT7473, program PWM1 ... OK
[1024kB@f8000000] Flash: 1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: ST2000DM001-9YN164 Firm: CC4B Ser#: W1E1RW8N
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
[0 1 0]: Enable DMA mode (6)
Device 1 @ 0 1:
Model: ST2000DM001-9YN164 Firm: CC4B Ser#: W1E1V2AX
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: ST2000DM001-9YN164 Firm: CC4B Ser#: W1E1RW8N
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
[0 1 0]: Enable DMA mode (6)
Device 1 @ 0 1:
Model: ST2000DM001-9YN164 Firm: CC4B Ser#: W1E1V2AX
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)


IDE read: device 0 block # 2048, count 6144 ... 6144 blocks read: OK

IDE read: device 0 block # 8192, count 8192 ... 8192 blocks read: OK
## Booting image at 00040000 ...
Image Name: Linux-2.6.31.8
Created: 2019-06-17 12:13:03 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2502832 Bytes = 2.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
Image Name:
Created: 2019-06-17 12:44:09 UTC
Image Type: ARM Linux RAMDisk Image (bzip2 compressed)
Data Size: 2982113 Bytes = 2.8 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...

Linux version 2.6.31.8 (soho@bsoho088.iomegacorp.com) (gcc version 4.7.2 (crosstool-NG 1.20.0) ) Mon Jun 17 08:12:59 EDT 2019 v0.0.9 Mon Jun 17 08:12:59 EDT 2019
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 64960
Kernel command line: console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 244352KB available (4592K code, 365K data, 136K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1589.24 BogoMIPS (lpj=7946240)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
arm4regs : 1393.600 MB/sec
8regs : 867.600 MB/sec
32regs : 1120.400 MB/sec
xor: using function: arm4regs (1393.600 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size 1MB
INTER_REGS ....base f1000000, size 1MB
NFLASH_CS ....base fa000000, size 2MB
SPI_CS ....base f4000000, size 16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size 2MB

Marvell Development Board (LSP Version KW_LSP_5.1.3_patch25)-- DB-88F6282A-BP Soc: 88F6282 A1 LE

Detected Tclk 200000000 and SysClk 533333333
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8040740
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1 142 MB/s
raid6: int32x2 166 MB/s
raid6: int32x4 166 MB/s
raid6: int32x8 162 MB/s
raid6: using algorithm int32x4 (166 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 2912K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed58)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.11 (for 2.6.31.14)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 483
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012100 (irq = 34) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access Seagate ST2000DM001-9YN1 CC4B PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access Seagate ST2000DM001-9YN1 CC4B PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 1:0:0:0: [sdb] 0-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: Attached scsi generic sg1 type 0
Loading Marvell Ethernet Driver:
o Cached descriptors in DRAM
o DRAM SW cache-coherency
o 2 Giga ports supported
o Single RX Queue support - ETH_DEF_RXQ=0
o Single TX Queue support - ETH_DEF_TXQ=0
o TCP segmentation offload (TSO) supported
o Large Receive offload (LRO) supported
o Receive checksum offload supported
o Transmit checksum offload supported
o Proc tool API enabled
o Rx descripors: q0=256
o Tx descripors: q0=532
o Loading network interface(s):
o register under mv88fx_eth platform
sda:
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
SPI Serial flash detected @ 0xf4000000, 1024KB (256sec x 4KB)
3 cmdlinepart partitions found on MTD device spi_flash
Creating 3 MTD partitions on "spi_flash":
0x000000000000-0x00000007e000 : "u-boot"
sdb:
0x00000007f000-0x000000080000 : "env"
0x00000007e000-0x00000007f000 : "env2"
Using Hamming 1-bit ECC for NAND device
No NAND device found!!!
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
unknown partition table
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sda1 sda2
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 0:0:0:0: [sda] Attached SCSI disk
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473 0-002e: adt7473 chip found
iBoard_model 2
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2021-05-07 09:24:47 UTC (1620379487)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: bzip2 image found at block 0
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
Looking for shell in cmdline: console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
Make node for mtd devices
HDD /dev/sda detected
HDD /dev/sdb detected
sh: mtd5: unknown operand
Create fw_env.config in /etc
Model name is ix2-ng
UUID_1 = 3846a3fc:61a1bb44:495cb7df:53cdb53c, size = 41943041
mdadm: cannot open /dev/sdb1: No such device or address
cat: can't open '/sys/class/block/sdb/sdb1/size': No such file or directory
Valid Disk 1 in md0: /dev/sda1
Valid Disk 2 in md0:
USB Device node is /dev/sdc1
Checking to see the if the reset button is pressed or not
scsi 2:0:0:0: Direct-Access PQ: 0 ANSI: 4
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdc] 62259200 512-byte logical blocks: (31.8 GB/29.6 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sdc: unknown partition table
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Attached SCSI removable disk
Checking for valid image on system
md: md0 stopped.
md: bind<sda1>
raid1: raid set md0 active with 1 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
mdadm: /dev/md0 has been started with 1 drive (o md0:ut of 2).
unknown partition table
md: md0 stopped.
md: unbind<sda1>
md: export_rdev(sda1)
md0: detected capacity change from 21457928192 to 0
mdadm: stopped /dev/md0
md: md0 stopped.
md: bind<sda1>
raid1: raid set md0 active with 1 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
mdadm: /dev/md0 has been started with 1 drive (out of 2).
md0: unknown partition table
2 logical volume(s) in volume group "md0_vg" now active
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/md0_vg/BFDlv is mounted.
/dev/md0_vg/BFDlv: clean, 16/262144 files, 216502/1048576 blocks
Copy dev node to /sysroot/dev
Found Valid EMC Image in disk...
Mounting apps image...
Mounting config image...
Check config filesystem
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/loop1 is mounted.
Copying System.map...
No need to create fw_env.config
No need to create fw_env.config
Constructing root filesystem...
Bootstrapping ...
rootdir=/
table='/usr/local/cfg/device_table.txt'
makedevs: line 42: chown failed for /bin/busybox: Read-only file system
makedevs: line 49: regular file '/usr/share/udhcpc/default.script' does not exist: No such file or directory
makedevs: line 55: Couldnt create node /dev/null: File exists
makedevs: line 56: Couldnt create node /dev/zero: File exists
makedevs: line 58: Couldnt create node /dev/urandom: File exists
makedevs: line 61: Couldnt create node /dev/loop0: File exists
makedevs: line 61: Couldnt create node /dev/loop1: File exists
makedevs: line 61: Couldnt create node /dev/loop2: File exists
makedevs: line 64: Couldnt create node /dev/console: File exists
makedevs: line 66: Couldnt create node /dev/tty2: File exists
makedevs: line 66: Couldnt create node /dev/tty3: File exists
makedevs: line 66: Couldnt create node /dev/tty4: File exists
makedevs: line 71: Couldnt create node /dev/ttyS0: File exists
makedevs: line 71: Couldnt create node /dev/ttyS1: File exists
makedevs: line 86: Couldnt create node /dev/mtd0: File exists
makedevs: line 86: Couldnt create node /dev/mtd1: File exists
makedevs: line 86: Couldnt create node /dev/mtd2: File exists
makedevs: line 86: Couldnt create node /dev/mtd3: File exists
makedevs: line 86: Couldnt create node /dev/mtd4: File exists
makedevs: line 86: Couldnt create node /dev/mtd5: File exists
makedevs: line 123: Couldnt create node /dev/sda: File exists
makedevs: line 124: Couldnt create node /dev/sda1: File exists
makedevs: line 125: Couldnt create node /dev/sdb: File exists
makedevs: line 126: Couldnt create node /dev/sdb1: File exists
makedevs: line 127: Couldnt create node /dev/sdc: File exists
makedevs: line 128: Couldnt create node /dev/sdc1: File exists
makedevs: line 190: Couldnt create node /dev/md0: File exists
makedevs: line 191: Couldnt create node /dev/md1: File exists
warning: failed to read mtab
Loading ext4...
Loading xfs...
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
Loading isofs...
Loading udf...
Loading ufsd...
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd: driver 8.5 (Jun 17 2019 08:30:02) LBD=ON with delayalloc with ioctl loaded at bf102000
NTFS support included
Hfs+/HfsX support included
Built for: EMC_ix2_2Loading btusb...

Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: Generic Bluetooth USB driver ver 0.5
usbcore: registered new interface driver btusb
## Error: "hwdata" not defined
Initialization complete.
Freeing init memory: 136K
INIT: version 2.88 booting
Running file /etc/init.d/rcS
Running file /etc/init.d/rc
Running file /etc/rcS.d/S02hostname.sh
Running file /etc/rcS.d/S02mountkernfs.sh
[FAIL] udev requires a kernel >= 2.6.32, not started ... failed!
failed!
Running file /etc/rcS.d/S04mountdevsubfs.sh
Running file /etc/rcS.d/S07hdparm
[ ok ] Setting parameters of disc: (none).
usb 1-1: USB disconnect, address 2
Running file /etc/rcS.d/S11hwclock.sh
[info] Setting the system clock.
[info] System Clock set to: Fri May 7 09:25:11 UTC 2021.
Running file /etc/rcS.d/S12mtab.sh
Running file /etc/init.d/mountkernfs.sh
Running file /etc/init.d/mountkernfs.sh
Running file /etc/init.d/mountdevsubfs.sh
Running file /etc/init.d/mountdevsubfs.sh
Running file /etc/rcS.d/S30checkfs.sh
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck 1.42.5 (29-Jul-2012)
done.
Running file /etc/rcS.d/S30procps
[....] Setting kernel variables ...Running file /etc/rcS.d/S35mountall.sh
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
Running file /etc/rcS.d/S36mountall-bootclean.sh
[ ok ] Cleaning up temporary files... /tmp.
Running file /etc/rcS.d/S36udev-mtab
dhclient host identical
Running file /etc/rcS.d/S40networking
[ ok ] Configuring network interfaces...done.
Running file /etc/rcS.d/S43rpcbind
[ ok ] Starting rpcbind daemon....
Running file /etc/rcS.d/S44nfs-common
[FAIL] Starting NFS common utilities: statd failed!
Running file /etc/rcS.d/S45mountnfs.sh
Running file /etc/rcS.d/S46mountnfs-bootclean.sh
[ ok ] Cleaning up temporary files....
Running file /etc/rcS.d/S55bootmisc.sh
Running file /etc/rcS.d/S55urandom
INIT: Entering runlevel: 2
Running file /etc/init.d/rc
Running file /etc/rc2.d/S10rsyslog
[ ok ] Starting enhanced syslogd: rsyslogd.
Running file /etc/rc2.d/S12dbus
chown: invalid user: `messagebus'
Running file /etc/rc2.d/S20nfs-common
[FAIL] Starting NFS common utilities: statd failed!
Running file /etc/rc2.d/S20nfs-kernel-server
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
Running file /etc/rc2.d/S20smartmontools
Running file /etc/rc2.d/S20sysfsutils
[ ok ] Setting sysfs variables....
Running file /etc/rc2.d/S23ntp
[....] Starting NTP server: ntpdRunning file /etc/rc2.d/S25bluetooth
[....] Starting bluetooth: bluetoothd rfcommBluetooth: L2CAP ver 2.13
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
. ok
Starting netplugd...
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
ln: failed to create symbolic link `/etc/samba/smb.conf': File exists
ln: failed to create symbolic link `/tmp/samba/account_policy.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/group_mapping.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/login_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/netsamlogon_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntdrivers.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntforms.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntprinters.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/share_info.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/winbindd_idmap.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/winbindd_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/wins.dat': File exists
ln: failed to create symbolic link `/tmp/samba/locking.tdb': File exists
Generating RSA Key...
unknown key type rsa1
Starting sshd: OK
Starting executord - appmd
export proxy environmental variables
Done.
Running file /etc/rc2.d/S99rc.local
Running file /etc/rc2.d/S99rmnologin

Debian GNU/Linux 7 ix2 ttyS0

ix2 login: root
Password:
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 05:43AM
Also if i made the USB stick with the folowing commands.

cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync


after this it looks like the USB stick is empty, is this right?

root@ix2:/mnt/ext/USB_UnkVend_UnkProduct_f_1# dir
total 16K
drwx------ 2 root root 16K May 7 02:43 lost+found
root@ix2:/mnt/ext/USB_UnkVend_UnkProduct_f_1#

If i look at df it says me 2GB is lost of space on the USB

root@ix2:/mnt/ext/USB_UnkVend_UnkProduct_f_1# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 50M 4.8M 46M 10% /
/dev/root.old 12M 3.2M 8.0M 29% /initrd
none 50M 4.8M 46M 10% /
/dev/md0_vg/BFDlv 4.0G 782M 3.0G 21% /boot
/dev/loop0 759M 682M 78M 90% /mnt/apps
/dev/loop1 7.5M 611K 6.5M 9% /mnt/etc
none 7.5M 611K 6.5M 9% /etc
/dev/loop2 128K 128K 0 100% /oem
tmpfs 25M 76K 25M 1% /run
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 49M 0 49M 0% /run/shm
/dev/mapper/md0_vg-vol1 16G 968M 15G 7% /mnt/system
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /mnt/pools/A/A0
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /nfs/Backups
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /nfs/Documents
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /nfs/Movies
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /nfs/Music
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /nfs/SharedMedia
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /nfs/Pictures
/dev/mapper/49bca58a_vg-lv59efbaf4 1.8T 276M 1.8T 1% /nfs/kirk
/dev/sdc1 30G 173M 28G 1% /mnt/ext/USB_UnkVend_UnkProduct_f_1
/dev/sdc1 30G 173M 28G 1% /nfs/USB_UnkVend_UnkProduct_f_1
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 05:02PM
killerdude77,

setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
-sh: setenv: command not found

These setenv commands are to be executed at u-boot prompt in serial console (not in Linux).
Hit any key to stop autoboot: 0
Interrupt u-boot countdown when you see the countdown as above. And then enter the setenv commands.


cd /media/sdb1/boot 
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt 
cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt 
mv uImage uImage.orig 
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage 
sync

In the command above, you need to replace kirkwood-goflexnet.dtb with the DTB file name for this box.

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 05:20PM
Thanks bodhi for the help.

I already found out to get in U boot by skiping autoboot.

After that is set al the setenv commands.

But it wont boot.

Here i made a complete output of what i get:



__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** ix2-spi ** ** uboot_ver:0.0.8 **

** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:18:22) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 800Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Found ADT7473, program PWM1 ... OK
[1024kB@f8000000] Flash: 1 MB

Marvell Serial ATA Adapter
Integrated Sata device found


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found



IDE device not available


IDE device not available
## Booting image at 00040000 ...
Bad Magic Number

IDE device 1: not available


IDE device not available


IDE device not available
## Booting image at 00040000 ...
Bad Magic Number
Marvell>> usb start
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> usb storage
Device 0: Vendor: Prod.: Rev:
Type: Removable Hard Disk
Capacity: 30400.0 MB = 29.6 GB (62259200 x 512)
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial'
Marvell>> usbboot

** No boot device **
Marvell>> boot

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found



IDE device not available


IDE device not available
## Booting image at 00040000 ...
Bad Magic Number

IDE device 1: not available


IDE device not available


IDE device not available
## Booting image at 00040000 ...
Bad Magic Number
Marvell>> printenv bootargs
bootargs=console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
console=console=ttyS0,115200
bootargs_root=root=/dev/ram0
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
fw_ver=3.3.2.18857
uboot_ver=0.0.8
serial_number=5563Y01001G22400828J0B1
ethaddr=00:D0:B8:1D:E8:DF
serialNo=EUAC2402LR
modelname=31997201
serialno=0,01qsqy0jnsbdnUZx7d/le9o58hYjk2w5nGAlBk0o3QazPA6iVQzOHdLPPneZXWAMI0,EUAC2402LR,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
pre_path=IX2/1.0.3/download_runin.sh
pre_path_conf=IX2/1.0.3/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.0.3
serverip=192.168.32.4
mfgtest_state=final_tested_ok
bootcmd=ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000;run bootcmd2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; bootm 0x40000 0x900000;
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
load_initrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
usb_boot=usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000
bootargs=console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none

Environment size: 2311/4091 bytes
Marvell>>


i dont understand why he wont boot from usb, in my exeption everything is right now..

Hope you have the solution. Thanks again.
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 05:26PM
Interrupt u-boot countdown when you see the countdown as above. And then enter the setenv commands.


cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync

In the command above, you need to replace kirkwood-goflexnet.dtb with the DTB file name for this box.

Yeah i did used the right dtb file i copied the commands i used, forgetting to set kirkwood-lenovo-ix2-ng.dtb BUT i did used this ng version.
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 05:33PM
Also i removed all the drives to be sure it will boot from USB stick.
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 07:56PM
killerdude77,


> Marvell>> usb storage
> Device 0: Vendor: Prod.:
> Rev:
> Type: Removable Hard Disk
> Capacity: 30400.0 MB = 29.6 GB
> (62259200 x 512)
> Marvell>> setenv load_initrd 'ext2load usb 0:1
> 0x2100000 /boot/uInitrd'
> Marvell>> setenv load_uimage 'ext2load usb 0:1
> 0x800000 /boot/uImage'
> Marvell>> setenv usb_boot 'usb start; run
> load_uimage; run load_initrd; bootm 0x800000
> 0x2100000'
> Marvell>> setenv bootargs 'console=ttyS0,115200
> root=LABEL=rootfs rootdelay=10
> mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
> earlyprintk=serial'


At this point, you would do either

run usbboot
or

setenv bootcmd 'run usbboot'
boot

And remember, don't save the envs. Just keep running with setenv commands temporarily like this until it works. At that point, you can then try booting with HDD rootfs if you like to do so.

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 08:52PM
Bodhi,

I tried what you said but it did not work unfortunaly. This is what i get.

Marvell>> setenv bootcmd 'run usbboot'
Marvell>> boot
## Error: "usbboot" not defined
Marvell>>
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
Marvell>> boot
## Error: "usbboot" not defined
Marvell>> usbboot

** No boot device **
Marvell>> usb storage
Device 0: Vendor: Prod.: Rev:
Type: Removable Hard Disk
Capacity: 30400.0 MB = 29.6 GB (62259200 x 512)
Marvell>> bootm
## Booting image at 02000000 ...
Bad Magic Number



I don't understand why it will not boot. Everything should be working....

Hope i don't take to much of your time.
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 08:54PM
killerdude77 Wrote:
-------------------------------------------------------
> Bodhi,
>
> I tried what you said but it did not work
> unfortunaly. This is what i get.
>
> Marvell>> setenv bootcmd 'run usbboot'
> Marvell>> boot
> ## Error: "usbboot" not defined
> Marvell>>
> Marvell>> setenv usb_boot 'usb start; run
> load_uimage; run load_initrd; bootm 0x800000
> 0x2100000'
> Marvell>> boot
> ## Error: "usbboot" not defined
> Marvell>> usbboot
>
> ** No boot device **
> Marvell>> usb storage
> Device 0: Vendor: Prod.:
> Rev:
> Type: Removable Hard Disk
> Capacity: 30400.0 MB = 29.6 GB
> (62259200 x 512)
> Marvell>> bootm
> ## Booting image at 02000000 ...
> Bad Magic Number
>
>
>
> I don't understand why it will not boot.
> Everything should be working....
>
> Hope i don't take to much of your time.

Sorry typo!

run usb_boot

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 09:31PM
Bodhi


Well i hard rebooted the NAS and started over again.,put in all setenv again. and this is what happened.

Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial'
Marvell>> run usb_boot
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found

** Unable to read "/boot/uImage" from usb 0:1 **

** Unable to read "/boot/uInitrd" from usb 0:1 **
## Booting image at 00800000 ...
Bad Magic Number

I dont know what Bad Magic Number is but i don't understand why it is unable to read /boot/

can i do a sort of ls to scan if usb is accessable?
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 09:55PM
killerdude77,

How did you format the USB drive? with Ext2, Ext3, or Ext4?

> I dont know what Bad Magic Number is

It is a stock u-boot fallback booting when it cannot read the USB drive. So the error is irrelevant.


> can i do a sort of ls to scan if usb is
> accessable?

Do
usb reset
ext2ls usb 0:1 /boot

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 10:15PM
Bodhi


I made a USB with 1 partition with fdisk. I made it dos with ext3and marked it bootable and labeled it rootfs.

after that i made the images with the tutorial mentioned at your post for using your debian 5.2.9 rootfs tarball.

I use a 32GB USB stick is that OK?


I will remake the USB stick again maybe it is that.
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 10:20PM
> I use a 32GB USB stick is that OK?

If it is the Sandisk Ultra Fit 32GB USB 3.0 then it will be problematic.

All Sandisk USB are very reliable for booting, except that the Ultra Fit 32GB is not good for booting.

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 10:41PM
Bodhi

I use a ICIDU 32GB USB stick.

I also got some other USB sticks to test if needed.

Is a 8GB USB enough then i can make another USB stick.


On fdisk i use the command D,D till it is complete clean, then make primary partition
After that i use O for label it DOS.
After that i use A to make is bootable
Then i use W to write to USB.

After that i do mkfs.ext3 to format in ext3, then i use e2label to label it rootfs.

after that i made the images...

is tis all right to do?
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 10:45PM
And also before the whole process is use sudo su...
Re: Installing U boot and Debian on ix2-ng
May 07, 2021 11:22PM
killerdude77,

Not sudo.

su -
and then
whoami
If it is root, then go ahead and extract the rootfs tarball.

8GB is plenty for now.

After that i use O for label it DOS.

That does not sound right. O is to erase.

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



Edited 2 time(s). Last edit at 05/07/2021 11:24PM by bodhi.
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 08, 2021 12:44AM
Bodhi,

I made 2 different USB sticks, 1 of 4GB and the 32GB i used.before.

i did all of this on my raspi pi with fdisk with the same instructions as mention on both sticks.

labeled them rootfs, made the images twice for every usb stick and still get the same error


Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)  earlyprintk=serial'
Marvell>> run usb_boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number


if i try to read the disk with the command i get this also on both usb sticks.

Marvell>> ext2ls usb 0:1 /boot
** Bad partition - usb 0:1 **
Marvell>>



I don't know what to do, can i try the special ix2-dl version of the dtb ?

=====

moderator edit: use code tags.



Edited 1 time(s). Last edit at 05/16/2021 04:21PM by bodhi.
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 08, 2021 12:52AM
Bodhi,

I will now take the 4GB USB and do the whole process again with su - now

Also on fdisk i used the "o" (lowercase) for the dos option.

i let your hear if it will work
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 08, 2021 02:15AM
Bodhi,


After a whole night of trying out en testing and testing again and again it is finally done.

The NAS is booting from the USB and debian is running now.

I think i made the mistake to use the disk part (/dev/sda) in stead of the partition (/dev/sda1)

After i made a new USb with this it finally started.

Thanks for all the help and time.


Now i want to add my drives to it, can i still use them total space of 4TB? (raid0 instead of 2TB in raid1)

And can i now update the U boot or do i first need to install the drives?


cheers from this side of the planet.
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 08, 2021 02:36AM
Bodhi.


can you tell me what U boot i need for my ix2-ng?


uboot.2017.07-tld-1.iconnect.bodhi.tar
md5
e7ce4376d2fc6d0489634556f1cc79b0
sha256
51564c3321ccc42ceedcbf8ca66ec6e6a66285408eb4e0d4d782275b675491d2

uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar
md5
1b09317e896ad928104a1edce459a9f5
sha256
8f5e8b5b33e3979b05698a09a92f99cd41ed04121993058f9b2469122fd280a7

uboot.2017.07-tld-1.nsa310.bodhi.tar
md5
b2d04eafe402bb356c8dc8e42dc21f8f
sha256
4a5e1e730607b8d8f42544de0bd6c476e0af0e70cc1d201405ae6d4843047d21

uboot.2017.07-tld-1.nsa310s.bodhi.tar
md5
4af9c6f16e1705e7a4345e6f7cc01fa7
sha256
724cb6ac5baf2053e63dc44489693c6772264ca326f4bdb2506c81f654ea84dc

uboot.2017.07-tld-1.nsa320.bodhi.tar
md5
ed39fa5a2f79809f32a78b661faa7a2c
sha256
67eba01db75a020cdb71e20b636d5863042f51a996f9c80d342e7ccca64a31e2

uboot.2017.07-tld-1.nsa325.bodhi.tar
md5
102be464341ec77de08725998dfca00b
sha256
93968d24efbe9fa1641f93340a4d3c476475c9d63f61573b365976d0770937ad

uboot.2017.07-tld-1.pogo_e02.bodhi.tar
md5
c32e0e23c57e77938a567f94c18a4084
sha256
36369a6df4953430e3df6993a08ac4e8608ea993f2715d64315c3ceec5659672

uboot.2017.07-tld-1.dockstar.bodhi.tar
md5
6a375a0bb5e8941d2fa416edc687f493
sha256
3b926930d0dc9d5c8b0405f1210d72b780170f1f88da29105b7c9d6a13a1cded

uboot.2017.07-tld-1.goflexhome.bodhi.tar
md5
b014dcf14697d573ca9626fbc6a6c489
sha256
964b659492d50e464d7117116a273768d27731cf6640eecc1a43cbedbffc14c1

uboot.2017.07-tld-1.goflexnet.bodhi.tar
md5
0d4c9afeb85d1ca0fd17bd4bbd21d782
sha256
a8acf14169b13543dd42c30d2ea100789426a2abc4fd3352dc9016ae314e7384

uboot.2017.07-tld-1.pogo_v4.bodhi.tar
md5
e2c2b4927dcd8189f0c97dd81b72ad7e
sha256
18f856d2106aabe6029331358fb06f053ea9257ad896e2d382f4f096f93c46e9


uboot.2017.07-tld-2.sheevaplug.bodhi.tar
md5
0fcae49e99ca3e7d24da31177c230c93
sha256
a645a6602f987b0c938e52c87fd3044b12c810299977a1899309a6ce28e6ae8c
Re: Installing U boot and Debian on ix2-ng
May 08, 2021 04:25PM
killerdude77,

I don't have new u-boot for this box. Those you've listed are for other Kirkwood boxes.

-bodhi
===========================
Forum Wiki
bodhi's corner
killerdude77
Re: Installing U boot and Debian on ix2-ng
May 09, 2021 12:37PM
I don't have new u-boot for this box. Those you've listed are for other Kirkwood boxes.

-bodhi


that is to bad, are you planning to make one for this box?



best regards
Re: Installing U boot and Debian on ix2-ng
May 09, 2021 04:36PM
killerdude77,

> that is to bad, are you planning to make one for
> this box?

Not in the near future. Perhaps in a few months (July-August time frame). I might have time to work on it, if you and somebody will have posted link to the GPL source before then.

-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: