Closed Dh0mp5eur closed 1 year ago
Hi,
I know you can change nand partitions as you want, it's then passed to the Linux kernel as a parameter. I don't remember if it's defined at compilation time or if it's just env in u-boot.
What version of u-boot do you use?
Could you give me the output of all your bootlog and also the output of printenv
command?
Hi,
I compiled the uboot with your script and persit it.
U-Boot 2022.10-00001-ga235721f39 (Aug 11 2023 - 20:50:26 +0000)
D-Link DNS-320
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
Core: 11 devices, 8 uclasses, devicetree: separate
NAND: 128 MiB
Loading Environment from NAND... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet-controller@72000
No such device: egiga0
Hit any key to stop autoboot: 0
=> printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/sdc1 usb-storage.delay_use=0 rootdelay=1 rw
bootcmd=usb reset ; ext4load usb 0:1 0x1000000 /boot/uImage ; bootm 0x1000000
bootdelay=3
bootenv=uEnv.txt
bootenvloadimage=nand read ${loadaddr} kernel
bootenvroot=ubi0:rootfs ubi.mtd=rootfs
bootenvrootfstype=ubifs
console=ttyS0,115200
ethact=egiga0
ethaddr=C8:BE:19:05:19:EB
fdtcontroladdr=7b35cc0
fileaddr=1000000
filesize=123dc38
importbootenv=echo Importing environment ...; env import -t ${loadaddr} ${filesize}
ipaddr=192.168.1.250
load_ubifs=ubi part root ; ubifsmount rootfs ; ubifsload 0x0900000 /boot/kirkwood-dns320.dtb ; ubifsload 0x1000000 /boot/uImage ; ubifsload 0x1200000 /boot/initrd.img-5.10.0-16-marvell
loadaddr=0x800000
loadbootenv=ext4load usb 0:1 ${loadaddr} ${bootenv}
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:896k(u-boot),128k(u-boot-env),-(root)
nandloadimage=nand read ${loadaddr} kernel
nandroot=ubi0:rootfs ubi.mtd=rootfs
nandrootfstype=ubifs
netmask=255.255.255.0
partition=nand0,0
root_flash=ubi.mtd=root root=ubi0:rootfs rootfstype=ubifs
serverip=192.168.1.254
setbootargs=setenv bootargs console=${console} ${optargs} ${mtdparts} cmdlinepart.${mtdparts} root=${bootenvroot} rootfstype=${bootenvrootfstype}
setnandbootenv=echo Booting from nand ...; setenv bootenvroot ${nandroot}; setenv bootenvrootfstype ${nandrootfstype}; setenv bootenvloadimage ${nandloadimage}
stderr=serial
stdin=serial
stdout=serial
subbootcmd=run setbootargs; if run bootenvloadimage; then bootm ${loadaddr};fi;
Environment size: 1578/131068 bytes
Debian boot I have some problem with the network card not working.
Hit any key to stop autoboot: 0
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
20262576 bytes read in 1073 ms (18 MiB/s)
## Loading kernel from FIT Image at 01000000 ...
Using 'conf-1' configuration
Trying 'kernel-0' kernel subimage
Description: Linux Kernel
Created: 2022-08-07 13:28:37 UTC
Type: Kernel Image
Compression: uncompressed
Data Start: 0x010000d4
Data Size: 2453864 Bytes = 2.3 MiB
Architecture: ARM
OS: Linux
Load Address: 0x00008000
Entry Point: 0x00008000
Hash algo: sha1
Hash value: decc43423482048f5ab99e15bff9dd5674b9946a
Verifying Hash Integrity ... sha1+ OK
## Loading ramdisk from FIT Image at 01000000 ...
Using 'conf-1' configuration
Trying 'ramdisk-0' ramdisk subimage
Description: ramdisk
Created: 2022-08-07 13:28:37 UTC
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x0125a5f0
Data Size: 17793871 Bytes = 17 MiB
Architecture: ARM
OS: Linux
Load Address: unavailable
Entry Point: unavailable
Hash algo: sha1
Hash value: 407051d254ebb4ac5591aa06a44d68fada3696a3
Verifying Hash Integrity ... sha1+ OK
## Loading fdt from FIT Image at 01000000 ...
Using 'conf-1' configuration
Trying 'fdt-0' fdt subimage
Description: Flattened Device Tree blob
Created: 2022-08-07 13:28:37 UTC
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x01257330
Data Size: 12815 Bytes = 12.5 KiB
Architecture: ARM
Hash algo: sha1
Hash value: 47262d090b7f9a72ddc2310d32af2ce6f1c6c851
Verifying Hash Integrity ... sha1+ OK
Booting using the fdt blob at 0x1257330
Loading Kernel Image
Loading Ramdisk to 06a39000, end 07b3134f ... OK
Loading Device Tree to 06a32000, end 06a3820e ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.0-18-marvell (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 Debian 5.10.140-1 (2022-09-02)
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: D-Link DNS-320 NAS (Rev A1)
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sdc1 usb-storage.delay_use=0 rootdelay=1 rw
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[ 0.000000] Memory: 104848K/131072K available (4748K kernel code, 825K rwdata, 1312K rodata, 292K init, 224K bss, 26224K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 22276 entries in 66 pages
[ 0.000000] ftrace: allocated 66 pages with 2 groups
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[ 0.000014] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[ 0.000080] Switching to timer-based delay loop, resolution 6ns
[ 0.000365] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=666666)
[ 0.000415] pid_max: default: 32768 minimum: 301
[ 0.001341] LSM: Security Framework initializing
[ 0.001701] Yama: disabled by default; enable with sysctl kernel.yama.*
[ 0.002231] AppArmor: AppArmor initialized
[ 0.002561] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.002611] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.005792] CPU: Testing write buffer coherency: ok
[ 0.009069] Setting up static identity map for 0x8200 - 0x823c
[ 0.009558] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[ 0.011536] devtmpfs: initialized
[ 0.021062] VFP support v0.3: not present
[ 0.021345] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.021409] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.021731] pinctrl core: initialized pinctrl subsystem
[ 0.025386] NET: Registered protocol family 16
[ 0.026536] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.028058] audit: initializing netlink subsys (disabled)
[ 0.029963] thermal_sys: Registered thermal governor 'fair_share'
[ 0.029984] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.030015] thermal_sys: Registered thermal governor 'step_wise'
[ 0.030037] thermal_sys: Registered thermal governor 'user_space'
[ 0.030209] cpuidle: using governor ladder
[ 0.030249] cpuidle: using governor menu
[ 0.030859] Feroceon L2: Enabling L2
[ 0.030935] Feroceon L2: Cache support initialised.
[ 0.032159] audit: type=2000 audit(0.028:1): state=initialized audit_enabled=0 res=1
[ 0.050914] No ATAGs?
[ 0.063444] clocksource: Switched to clocksource orion_clocksource
[ 0.133937] VFS: Disk quotas dquot_6.6.0
[ 0.134148] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.135284] AppArmor: AppArmor Filesystem Enabled
[ 0.137492] NET: Registered protocol family 2
[ 0.137877] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.139100] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.139606] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.139651] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.139683] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.139899] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.139949] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.140343] NET: Registered protocol family 1
[ 0.140399] PCI: CLS 0 bytes, default 32
[ 0.141009] Trying to unpack rootfs image as initramfs...
[ 2.508130] Freeing initrd memory: 17380K
[ 2.509552] Initialise system trusted keyrings
[ 2.509729] Key type blacklist registered
[ 2.510158] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 2.518352] zbud: loaded
[ 2.519516] Key type asymmetric registered
[ 2.519541] Asymmetric key parser 'x509' registered
[ 2.519621] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 2.523630] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 2.527382] mv_xor f1060800.xor: Marvell shared XOR driver
[ 2.565663] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 2.566283] mv_xor f1060900.xor: Marvell shared XOR driver
[ 2.605658] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 2.606557] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 2.608278] printk: console [ttyS0] disabled
[ 2.608414] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[ 3.120558] printk: console [ttyS0] enabled
[ 3.126158] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A
[ 3.137442] i2c /dev entries driver
[ 3.142836] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.150041] registered taskstats version 1
[ 3.154177] Loading compiled-in X.509 certificates
[ 3.206912] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[ 3.216062] Loaded X.509 cert 'Debian Secure Boot Signer 2022 - linux: 14011249c2675ea8e5148542202005810584b25f'
[ 3.226953] AppArmor: AppArmor sha1 policy hashing enabled
[ 3.243538] Freeing unused kernel memory: 292K
[ 3.248000] Kernel memory protection not selected by kernel config.
[ 3.254277] Run /init as init process
Loading, please wait...
Couldn't get a file descriptor referring to the console.
Couldn't get a file descriptor referring to the console.
Starting version 247.3-7+deb11u1
[ 3.943577] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ 3.974477] gpio-fan gpio_fan: GPIO fan initialized
[ 4.039667] rtc-mv f1010300.rtc: registered as rtc0
[ 4.078651] rtc-mv f1010300.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[ 4.149581] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 4.282858] SCSI subsystem initialized
[ 4.294016] usbcore: registered new interface driver usbfs
[ 4.335153] usbcore: registered new interface driver hub
[ 4.364022] usbcore: registered new device driver usb
[ 4.418329] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.445112] sata_mv f1080000.sata: slots 32 ports 2
[ 4.463100] ehci-orion: EHCI orion driver
[ 4.489825] orion-ehci f1050000.ehci: EHCI Host Controller
[ 4.510831] scsi host0: sata_mv
[ 4.517575] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 4.536564] scsi host1: sata_mv
[ 4.547048] ata1: SATA max UDMA/133 irq 33
[ 4.551202] ata2: SATA max UDMA/133 irq 33
[ 4.563167] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[ 4.603873] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 4.621418] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 4.629723] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.636945] usb usb1: Product: EHCI Host Controller
[ 4.641832] usb usb1: Manufacturer: Linux 5.10.0-18-marvell ehci_hcd
[ 4.648182] usb usb1: SerialNumber: f1050000.ehci
[ 4.675298] hub 1-0:1.0: USB hub found
[ 4.679335] hub 1-0:1.0: 1 port detected
[ 4.939484] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 5.004931] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address c8:be:19:05:19:eb
[ 5.027560] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 5.055849] ata1.00: ATA-8: SAMSUNG HD204UI, 1AQ10001, max UDMA/133
[ 5.062152] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 5.087756] ata1.00: configured for UDMA/133
[ 5.092956] scsi 0:0:0:0: Direct-Access ATA SAMSUNG HD204UI 0001 PQ: 0 ANSI: 5
[ 5.149432] usb 1-1: New USB device found, idVendor=05dc, idProduct=a813, bcdDevice=11.00
[ 5.157647] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.164801] usb 1-1: Product: USB Flash Drive
[ 5.169167] usb 1-1: Manufacturer: Lexar
[ 5.173097] usb 1-1: SerialNumber: AA5J4UEHC81G2S1N
[ 10.615475] ata2: link is slow to respond, please be patient (ready=0)
[ 14.279494] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 14.307794] ata2.00: ATA-8: ST2000DL004 HD204UI, 1AQ10001, max UDMA/133
[ 14.314426] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 14.343818] ata2.00: configured for UDMA/133
[ 14.348794] scsi 1:0:0:0: Direct-Access ATA ST2000DL004 HD20 0001 PQ: 0 ANSI: 5
[ 14.478640] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 14.487411] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 14.508704] sd 1:0:0:0: [sdb] Write Protect is off
[ 14.513776] sd 0:0:0:0: [sda] Write Protect is off
[ 14.524857] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 14.534036] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 14.567232] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 14.576997] sdb: sdb1
[ 14.580233] sda: sda1
[ 14.589699] scsi host2: usb-storage 1-1:1.0
[ 14.595791] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 14.600539] sd 0:0:0:0: [sda] Attached SCSI disk
[ 14.608593] usbcore: registered new interface driver usb-storage
[ 14.982458] scsi 2:0:0:0: Direct-Access Lexar USB Flash Drive 1100 PQ: 0 ANSI: 0 CCS
[ 14.995741] sd 2:0:0:0: [sdc] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[ 15.006731] sd 2:0:0:0: [sdc] Write Protect is off
[ 15.012708] sd 2:0:0:0: [sdc] No Caching mode page found
[ 15.018058] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[ 15.033187] sdc: sdc1
[ 15.042990] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[ 15.079569] usbcore: registered new interface driver uas
[ 15.390900] random: crng init done
Begin: Loading essential drivers ... [ 15.858207] NET: Registered protocol family 10
[ 15.978391] Segment Routing with IPv6
done.
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.36.1
[/sbin/fsck.ext4 (1) -- /dev/sdc1] fsck.ext4 -a -C0 /dev/sdc1
/dev/sdc1: clean, 29167/244800 files, 379750/978688 blocks
done.
[ 17.713213] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[ 18.911633] systemd[1]: System time before build time, advancing clock.
[ 19.019870] systemd[1]: Inserted module 'autofs4'
[ 19.151529] systemd[1]: systemd 247.3-7+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[ 19.175736] systemd[1]: Detected architecture arm.
Welcome to Debian GNU/Linux 11 (bullseye)!
[ 19.217417] systemd[1]: Set hostname to <DNS-320>.
[ 22.019963] systemd[1]: Queued start job for default target Graphical Interface.
[ 22.031947] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 22.044365] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 22.059902] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 22.085878] systemd[1]: Created slice system-modprobe.slice.
[ OK ] Created slice system-modprobe.slice.
[ 22.109808] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ 22.133423] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 22.156602] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ 22.184422] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ 22.209596] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ OK ] Set up automount Arbitrary…s File System Automount Point.
[ 22.236315] systemd[1]: Reached target Local Encrypted Volumes.
[ OK ] Reached target Local Encrypted Volumes.
[ 22.260806] systemd[1]: Reached target Host and Network Name Lookups.
[ OK ] Reached target Host and Network Name Lookups.
[ 22.283878] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ 22.304414] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 22.324205] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 22.343992] systemd[1]: Reached target System Time Set.
[ OK ] Reached target System Time Set.
[ 22.366389] systemd[1]: Listening on RPCbind Server Activation Socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ 22.393105] systemd[1]: Listening on fsck to fsckd communication Socket.
[ OK ] Listening on fsck to fsckd communication Socket.
[ 22.416546] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 22.442017] systemd[1]: Listening on Journal Audit Socket.
[ OK ] Listening on Journal Audit Socket.
[ 22.465369] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 22.489661] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 22.509870] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 22.533300] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 22.557559] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 22.574665] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 22.616849] systemd[1]: Mounting NFSD configuration filesystem...
Mounting NFSD configuration filesystem...
[ 22.664413] systemd[1]: Mounting RPC Pipe File System...
Mounting RPC Pipe File System...
[ 22.721494] systemd[1]: Mounting Kernel Debug File System...
Mounting Kernel Debug File System...
[ 22.794092] systemd[1]: Mounting Kernel Trace File System...
Mounting Kernel Trace File System...
[ 22.869938] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[ 22.910821] systemd[1]: Starting Set the console keyboard layout...
Starting Set the console keybo[ 23.013553] RPC: Registered named UNIX socket transport module.
ard layout..[ 23.020142] RPC: Registered udp transport module.
.
[ 23.026182] RPC: Registered tcp transport module.
[ 23.031110] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 23.057859] systemd[1]: Starting Create list of static device nodes for the current kernel...
Starting Create list of st…odes for the current kernel...
[ 23.139822] systemd[1]: Starting Load Kernel Module configfs...
Starting Load Kernel Module configfs...
[ 23.201220] systemd[1]: Starting Load Kernel Module drm...
Starting Load Kernel Module drm...
[ 23.272012] systemd[1]: Starting Load Kernel Module fuse...
Starting Load Kernel Module fuse...
[ 23.328136] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 23.352353] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 23.401850] systemd[1]: Starting Journal Service...
[ 23.424171] fuse: init (API version 7.32)
Startin[ 23.432186] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
g Journal Service...
[ 23.479431] systemd[1]: Starting Load Kernel Modules...
Starting Load Kernel Modules...
[ 23.537741] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 23.614129] systemd[1]: Starting Coldplug All udev Devices...
Starting Coldplug All udev Devices...
[ 23.776459] systemd[1]: Mounted POSIX Message Queue File System.
[ OK ] Mounted POSIX Message Queue File System.
[ 23.825276] systemd[1]: Mounted NFSD configuration filesystem.
[ OK ] Mounted NFSD configuration filesystem.
[ 23.873081] systemd[1]: Mounted RPC Pipe File System.
[ OK ] Mounted RPC Pipe File System.
[ 23.913148] systemd[1]: Mounted Kernel Debug File System.
[ OK ] Mounted Kernel Debug File System.
[ 23.953390] systemd[1]: Mounted Kernel Trace File System.
[ OK ] Mounted Kernel Trace File System.
[ 24.003791] systemd[1]: Finished Set the console keyboard layout.
[ OK ] Finished Set the console keyboard layout.
[ 24.051817] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ OK ] Finished Create list of st… nodes for the current[ 24.094289] EXT4-fs (sdc1): re-mounted. Opts: (null)
kernel.
[ 24.153674] systemd[1]: modprobe@configfs.service: Succeeded.
[ 24.179841] systemd[1]: Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module configfs.
[ 24.215242] systemd[1]: modprobe@drm.service: Succeeded.
[ 24.243862] systemd[1]: Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module drm.
[ 24.280095] systemd[1]: modprobe@fuse.service: Succeeded.
[ 24.299980] systemd[1]: Finished Load Kernel Module fuse.
[ OK ] Finished Load Kernel Module fuse.
[ 24.331726] systemd[1]: Finished Load Kernel Modules.
[ OK ] Finished Load Kernel Modules.
[ 24.363718] systemd[1]: Finished Remount Root and Kernel File Systems.
[ OK ] Finished Remount Root and Kernel File Systems.
[ 24.448310] systemd[1]: Mounting FUSE Control File System...
Mounting FUSE Control File System...
[ 24.516310] systemd[1]: Mounting Kernel Configuration File System...
Mounting Kernel Configuration File System...
[ 24.571168] systemd[1]: Starting pNFS block layout mapping daemon...
Starting pNFS block layout mapping daemon...
[ 24.634041] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 24.668594] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[ 24.739934] systemd[1]: Starting Load/Save Random Seed...
Starting Load/Save Random Seed...
[ 24.798991] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 24.881406] systemd[1]: Starting Create System Users...
Starting Create System Users...
[ 25.000562] systemd[1]: Mounted FUSE Control File System.
[ OK ] Mounted FUSE Control File System.
[ 25.057089] systemd[1]: Mounted Kernel Configuration File System.
[ OK ] Mounted Kernel Configuration File System.
[ 25.110400] systemd[1]: Started pNFS block layout mapping daemon.
[ OK ] Started pNFS block layout mapping daemon.
[ 25.319703] systemd[1]: Finished Load/Save Random Seed.
[ OK ] Finished Load/Save Random Seed.
[ 25.365293] systemd[1]: Condition check resulted in First Boot Complete being skipped.
[ 25.423831] systemd[1]: Finished Apply Kernel Variables.
[ OK ] Finished Apply Kernel Variables.
[ 25.531695] systemd[1]: Finished Create System Users.
[ OK ] Finished Create System Users.
[ 25.561072] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
Starting Create Static Device Nodes in /dev...
[ OK ] Finished Coldplug All udev Devices.
Starting Helper to synchronize boot up for ifupdown...
[ OK ] Finished Helper to synchronize boot up for ifupdown.
[ 25.945072] systemd-journald[200]: Received client request to flush runtime journal.
[ 25.968552] systemd-journald[200]: File /var/log/journal/afaccd2cc25f407388a731de5fbf1cb8/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ OK ] Finished Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /tmp...
Starting Rule-based Manage…for Device Events and Files...
[ OK ] Mounted /tmp.
[ OK ] Reached target Local File Systems.
Starting Load AppArmor profiles...
Starting Set console font and keymap...
Starting Preprocess NFS configuration...
[ OK ] Finished Set console font and keymap.
[ OK ] Finished Preprocess NFS configuration.
Starting NFSv4 ID-name mapping service...
[ OK ] Reached target NFS client services.
[ OK ] Started NFSv4 ID-name mapping service.
[ OK ] Finished Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ OK ] Started Rule-based Manager for Device Events and Files.
[ 27.649847] audit: type=1400 audit(1659878717.732:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/chronyd" pid=233 comm="apparmor_parser"
[ 27.911941] audit: type=1400 audit(1659878717.996:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=240 comm="apparmor_parser"
[ 28.236054] audit: type=1400 audit(1659878718.320:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=244 comm="apparmor_parser"
[ OK ] Finished Load AppArmor profiles.
Starting Raise[ 28.355867] audit: type=1400 audit(1659878718.320:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=244 comm="apparmor_parser"
network interfaces...
[ OK ] Finished Create Volatile Files and Directories.
[ 29.261549] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[ 29.268000] nand: Samsung NAND 128MiB 3,3V 8-bit
[ 29.272656] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Starting RPC bind portmap service...
Starting Update UTMP about System Boot/Shutdown...
[ 29.567805] orion_wdt: Initial timeout 25 sec
[ 29.595552] Scanning device for bad blocks
[ 29.699672] marvell-cesa f1030000.crypto: CESA device successfully registered
[ OK ] Found device /dev/ttyS0.
[ 29.868906] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ OK ] Finished Raise network interfaces.
[ 29.963948] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 30.047913] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ OK ] Started RPC bind portmap service.
[ OK ] Reached target Network.
[ OK ] Reached target Network is Online.
[ OK ] Reached target RPC Port Mapper.
Starting NFS Mount Daemon...
Starting NFS status monitor for NFSv2/3 locking....
[ 31.689775] 6 fixed-partitions partitions found on MTD device orion_nand
[ 31.696526] Creating 6 MTD partitions on "orion_nand":
[ OK ] Started NFS status monitor for NFSv2/3 locking..
[ OK ] Started NFS Mount Daemon.
[ 31.763625] 0x000000000000-0x000000100000 : "u-boot"
[ 31.802512] 0x000000100000-0x000000600000 : "uImage"
Startin[ 31.854794] 0x000000600000-0x000000b00000 : "ramdisk"
g NFS server and services...
[ 31.906970] 0x000000b00000-0x000007100000 : "image"
[ OK ] Finished Update UTMP about System Boot/Shutdown.
[ 31.968909] 0x000007100000-0x000007b00000 : "mini firmware"
[ 32.027101] 0x000007b00000-0x000008000000 : "config"
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Avahi mDNS/DNS-SD Stack...
Starting chrony, an NTP client/server...
[ OK ] Started D-Bus System Message Bus.
Starting Remove Stale Onli…t4 Metadata Check Snapshots...
Startin[ 33.724329] NFSD: Using UMH upcall client tracking operations.
g Samba[ 33.731222] NFSD: starting 90-second grace period (net f000001c)
NMB Daemon...
Starting /etc/rc.local Compatibility...
Starting OpenBSD Secure Shell server...
Starting User Login Management...
[ OK ] Finished NFS server and services.
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Reached target Remote File Systems (Pre).
[ OK ] Reached target Remote File Systems.
[ OK ] Started Regular background program processing daemon.
Starting LSB: disk temperature monitoring daemon...
Starting Notify NFS peers of a restart...
Starting Permit User Sessions...
[ OK ] Started Avahi mDNS/DNS-SD Stack.
Starting Netatalk AFP fileserver for Macintosh clients...
[ OK ] Started Notify NFS peers of a restart.
[ OK ] Started LSB: disk temperature monitoring daemon.
[ OK ] Finished Permit User Sessions.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Started chrony, an NTP client/server.
[ OK ] Started Netatalk AFP fileserver for Macintosh clients.
[ OK ] Started OpenBSD Secure Shell server.
[ OK ] Started User Login Management.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[ OK ] Started Discard unused blocks once a week.
[ OK ] Reached target Timers.
Debian GNU/Linux 11 DNS-320 ttyS0
DNS-320 login:
Hi,
Could you try to change your mtdparts
environment variable to:
setenv mtdparts 'mtdparts=orion_nand:896k(u-boot),128k(u-boot-env),-(rootfs)"'
It's what I defined in compilation config: https://github.com/ggirou/dns320/blob/master/scripts/v2022.10-dns320.patch#L616
Personnaly, I don't use ubifs partition anymore. I get everything from usb drive, uEnv.txt and uImage. Latest versions of u-boot have better support with flaky usb drive.
Thank you for your help. I will give up using the ubifs partition.
Hi,
I thank you in advance for your work.
I have a problem at the "Setup UBIFS partition" step
I don't have a rootfs partition but a root partition. I replace it with a partition named rootfs.
Erase partition
Ubi part and volume It looks like the rootfs partition is on mtd3.
Boot on Debian
Ubiattach mtd2 I can't mount the partition to copy the uImage
Ubiattach mtd3
Do you have any idea to solve this problem?
And after a reboot. rootfs become root again
Thank you so much