Welcome! Log In Create A New Profile

Advanced

Need help with systemd using uEnv.txt

Posted by gigas 
Need help with systemd using uEnv.txt
June 23, 2022 04:17PM
I'm having problem booting with systemd using uEnv.txt.
I followed the instructions and installed the latest uboot and Debian kernel and rootfs on my GoFlex Home.
I want to use systemd to boot the box using uEnv.txt. I was able to get "custom_params=init=/bin/systemd" when I printenv custom_params in Netconsole, but it shows "custom_params=" when I fw_printenv custom_params inside Debian.
Any idea?

Here are the outputs
fw_printenv
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_lede
bootcmd_exec=if run load_uimage; then if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi
bootcmd_lede=run set_bootargs_lede; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=
if_netconsole=ping $serverip
ipaddr=192.168.0.222
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,0
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15

Netconsole
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: LITEONIT LSS-32L6G-HP  Firm: DS51704  Ser#:
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
Unknown command 'mmc' - try 'help'
loading envs from usb 0 ...
** Bad device usb 0 **
loading envs from usb 1 ...
** Bad device usb 1 **
loading envs from usb 2 ...
** Bad device usb 2 **
loading envs from usb 3 ...
** Bad device usb 3 **
loading envs from ide 0 ...
33 bytes read in 8 ms (3.9 KiB/s)
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: LITEONIT LSS-32L6G-HP  Firm: DS51704  Ser#: 
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
device ide 0:1
1 bytes read in 7 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
5702912 bytes read in 927 ms (5.9 MiB/s)
loading uInitrd ...
10166127 bytes read in 1607 ms (6 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10257 bytes read in 33 ms (302.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.17.4-kirkwood-tld-1
   Created:      2022-06-23  14:47:13 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5702848 Bytes = 5.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.17.4-kirkwood-tld-1
   Created:      2022-06-23  14:47:18 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10166063 Bytes = 9.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.17.4-kirkwood-tld-1 (root@tldDebianVM) (arm-linux-gnueabi-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1.0 PREEMPT Mon Apr 25 19:49:57 PDT 2022
[    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: Seagate GoFlex Home
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi) init=/bin/systemd
[    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: 99532K/131072K available (11264K kernel code, 1628K rwdata, 5012K rodata, 1024K init, 304K bss, 31540K reserved, 0K cma-reserved)
[    0.000000] random: get_random_u32 called from ____cache_alloc+0x3f4/0x794 with crng_init=0
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000002] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000058] Switching to timer-based delay loop, resolution 5ns
[    0.000922] Console: colour dummy device 80x30
[    0.000997] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001040] pid_max: default: 32768 minimum: 301
[    0.001421] LSM: Security Framework initializing
[    0.001689] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001741] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003084] CPU: Testing write buffer coherency: ok
[    0.005228] cblist_init_generic: Setting adjustable number of callback queues.
[    0.005267] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.005552] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.005933] Setting up static identity map for 0x100000 - 0x100058
[    0.006240] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006582] rcu: Hierarchical SRCU implementation.
[    0.008034] devtmpfs: initialized
[    0.013757] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013816] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.051335] prandom32: self test passed (less than 6 bits correlated)
[    0.051383] prandom: seed boundary self test passed
[    0.055654] prandom: 100 self tests passed
[    0.055672] pinctrl core: initialized pinctrl subsystem
[    0.057368] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.058263] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.059473] audit: initializing netlink subsys (disabled)
[    0.061133] thermal_sys: Registered thermal governor 'step_wise'
[    0.061508] audit: type=2000 audit(0.050:1): state=initialized audit_enabled=0 res=1
[    0.061673] cpuidle: using governor ladder
[    0.061774] cpuidle: using governor menu
[    0.062322] Feroceon L2: Enabling L2
[    0.062378] Feroceon L2: Cache support initialised.
[    0.071895] No ATAGs?
[    0.250298] raid6: int32x8  gen()   108 MB/s
[    0.420251] raid6: int32x4  gen()    95 MB/s
[    0.590159] raid6: int32x2  gen()   138 MB/s
[    0.760073] raid6: int32x1  gen()    99 MB/s
[    0.760092] raid6: using algorithm int32x2 gen() 138 MB/s
[    0.930074] raid6: .... xor() 83 MB/s, rmw enabled
[    0.930092] raid6: using intx1 recovery algorithm
[    0.930392] vgaarb: loaded
[    0.930995] SCSI subsystem initialized
[    0.931265] libata version 3.00 loaded.
[    0.931582] usbcore: registered new interface driver usbfs
[    0.931661] usbcore: registered new interface driver hub
[    0.931722] usbcore: registered new device driver usb
[    0.931980] pps_core: LinuxPPS API ver. 1 registered
[    0.931998] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.932035] PTP clock support registered
[    0.934088] clocksource: Switched to clocksource orion_clocksource
[    1.029581] VFS: Disk quotas dquot_6.6.0
[    1.029691] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.054228] NET: Registered PF_INET protocol family
[    1.054452] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.055446] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.055499] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.055537] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.055567] TCP: Hash tables configured (established 1024 bind 1024)
[    1.055828] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.055910] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.055950] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.056170] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.064604] RPC: Registered named UNIX socket transport module.
[    1.064631] RPC: Registered udp transport module.
[    1.064643] RPC: Registered tcp transport module.
[    1.064655] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.064674] PCI: CLS 0 bytes, default 32
[    1.065037] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.066210] Trying to unpack rootfs image as initramfs...
[    2.544111] random: fast init done
[    2.887388] Freeing initrd memory: 9928K
[    3.689186] Initialise system trusted keyrings
[    3.689268] Key type blacklist registered
[    3.689548] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    3.689681] zbud: loaded
[    3.691468] NFS: Registering the id_resolver key type
[    3.691511] Key type id_resolver registered
[    3.691527] Key type id_legacy registered
[    3.691575] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.691602] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    3.691618] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.691930] jffs2: version 2.2. (NAND) (SUMMARY)  \xc2\xa9 2001-2006 Red Hat, Inc.
[    3.692429] fuse: init (API version 7.36)
[    3.692859] orangefs_debugfs_init: called with debug mask: :none: :0:
[    3.693091] orangefs_init: module version upstream loaded
[    3.693113] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    3.797619] xor: measuring software checksum speed
[    3.806538]    arm4regs        :  1112 MB/sec
[    3.821302]    8regs           :   667 MB/sec
[    3.831466]    32regs          :   971 MB/sec
[    3.831484] xor: using function: arm4regs (1112 MB/sec)
[    3.831506] async_tx: api initialized (async)
[    3.831530] Key type asymmetric registered
[    3.831544] Asymmetric key parser 'x509' registered
[    3.868322] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    3.868515] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    3.868665] io scheduler bfq registered
[    4.062736] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.065316] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.125173] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.127777] mv_xor f1060900.xor: Marvell shared XOR driver
[    4.185180] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.188075] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.189546] printk: console [ttyS0] disabled
[    4.189656] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    5.041514] printk: console [ttyS0] enabled
[    5.055274] loop: module loaded
[    5.059475] sata_mv f1080000.sata: version 1.28
[    5.059810] sata_mv f1080000.sata: slots 32 ports 1
[    5.067740] scsi host0: sata_mv
[    5.071940] ata1: SATA max UDMA/133 irq 32
[    5.077815] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[    5.084991] nand: Toshiba NAND 256MiB 3,3V 8-bit
[    5.090331] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.098711] Scanning device for bad blocks
[    5.322654] 2 cmdlinepart partitions found on MTD device orion_nand
[    5.329703] Creating 2 MTD partitions on "orion_nand":
[    5.335617] 0x000000000000-0x000000100000 : "u-boot"
[    5.341932] 0x000000100000-0x000010000000 : "ubi"
[    5.349638] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.358277] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.387096] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.584131] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.591494] ata1.00: ATA-8: LITEONIT LSS-32L6G-HP, DS51704, max UDMA/133
[    5.598967] ata1.00: 62533296 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    5.608997] ata1.00: configured for UDMA/133
[    5.624557] scsi 0:0:0:0: Direct-Access     ATA      LITEONIT LSS-32L 704  PQ: 0 ANSI: 5
[    5.634936] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[    5.643690] sd 0:0:0:0: [sda] Write Protect is off
[    5.649296] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.649453] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.661740]  sda: sda1
[    5.666258] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.155201] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[    6.164869] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.172162] ehci-pci: EHCI PCI platform driver
[    6.177424] ehci-orion: EHCI orion driver
[    6.182381] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.188664] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.197276] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    6.224119] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.231159] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17
[    6.240207] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.248194] usb usb1: Product: EHCI Host Controller
[    6.253799] usb usb1: Manufacturer: Linux 5.17.4-kirkwood-tld-1 ehci_hcd
[    6.261257] usb usb1: SerialNumber: f1050000.ehci
[    6.267459] hub 1-0:1.0: USB hub found
[    6.271988] hub 1-0:1.0: 1 port detected
[    6.277513] usbcore: registered new interface driver usb-storage
[    6.284763] mousedev: PS/2 mouse device common for all mice
[    6.292176] rtc-mv f1010300.rtc: registered as rtc0
[    6.297887] rtc-mv f1010300.rtc: setting system clock to 2022-06-23T20:28:19 UTC (1656016099)
[    6.308343] i2c_dev: i2c /dev entries driver
[    6.314041] device-mapper: uevent: version 1.0.3
[    6.319747] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    6.329434] device-mapper: multipath round-robin: version 1.2.0 loaded
[    6.336764] device-mapper: multipath queue-length: version 0.2.0 loaded
[    6.344142] device-mapper: multipath service-time: version 0.3.0 loaded
[    6.351559] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    6.358410] device-mapper: raid: Loading target version 1.15.1
[    6.366637] hid: raw HID events driver (C) Jiri Kosina
[    6.372857] drop_monitor: Initializing network drop monitor service
[    6.380383] NET: Registered PF_INET6 protocol family
[    6.387629] Segment Routing with IPv6
[    6.392019] RPL Segment Routing with IPv6
[    6.396878] In-situ OAM (IOAM) with IPv6
[    6.401619] NET: Registered PF_PACKET protocol family
[    6.407690] Key type dns_resolver registered
[    6.413339] registered taskstats version 1
[    6.418243] Loading compiled-in X.509 certificates
[    6.424895] zswap: loaded using pool lzo/zbud
[    6.430591] Key type ._fscrypt registered
[    6.435420] Key type .fscrypt registered
[    6.440067] Key type fscrypt-provisioning registered
[    6.451406] Key type big_key registered
[    6.487564] Key type encrypted registered
[    6.582368] "cryptomgr_test" (101) uses obsolete ecb(arc4) skcipher
[   11.469096] Freeing unused kernel image (initmem) memory: 1024K
[   11.494874] Checked W+X mappings: passed, no W+X pages found
[   11.501283] Run /init as init process
[   11.505718]   with arguments:
[   11.505731]     /init
[   11.505739]   with environment:
[   11.505746]     HOME=/
[   11.505754]     TERM=linux
[   23.079162] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   23.116627] EXT4-fs (sda1): mounted filesystem with ordered data mode. Quota mode: none.
[   25.784258] orion_wdt: Initial timeout 21 sec
[   26.154320] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   26.332626] marvell-cesa f1030000.crypto: CESA device successfully registered
[   27.544385] EXT4-fs (sda1): re-mounted. Quota mode: none.
[   28.824629] ksmbd: The ksmbd server is experimental, use at your own risk.
[   29.843422] random: dd: uninitialized urandom read (512 bytes read)
[   33.851995] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled

Systemctl status
root@debian:~# fw_printenv custom_params
custom_params=
root@debian:~# systemctl status
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Re: Need help with systemd using uEnv.txt
June 23, 2022 05:05PM
gigas

root@debian:~# fw_printenv custom_params
custom_params=

That was correct. When you use uEnv.txt, the changes are transient, i.e. applicable during u-boot booting. So that why it was not what you want to see in Debian.

That custom_params is actually working, as your bootlog showed:

Quote

[ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi) init=/bin/systemd

Perhaps this is why it did not boot systemd. Note 5 in the rootfs installation:

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

Note 5 (Optional):

To boot with systemd, add parameter init=/bin/systemd to your u-boot env bootargs (beware that in later Debian distribution, the location of systemd binary might have changed).

In debian do

ls -l /bin/systemd
If it is not there, you need to find the new location.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 06/23/2022 05:06PM by bodhi.
Re: Need help with systemd using uEnv.txt
June 23, 2022 05:21PM
Here is the output
root@debian:~# ls -l /bin/systemd
lrwxrwxrwx 1 root root 20 Mar 20 12:55 /bin/systemd -> /lib/systemd/systemd

I changed the uEnv.txt accordingly but it still doesn't work after reboot
root@debian:~# cat /boot/uEnv.txt
custom_params=init=/lib/systemd/systemd
root@debian:~# systemctl status
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

Re: Need help with systemd using uEnv.txt
June 23, 2022 05:34PM
Oh my god. I figured it out.
All I have to do is install systemd-sysv. Installing only apt-get install systemd was not enough.
It is mentioned in the Debian wiki https://wiki.debian.org/systemd#Installing_and_Testing. Lucky that I found this when l was looking for systemd new location



Edited 1 time(s). Last edit at 06/23/2022 05:36PM by gigas.
Re: Need help with systemd using uEnv.txt
June 23, 2022 06:12PM
> Oh my god. I figured it out.
> All I have to do is install systemd-sysv.
> Installing only apt-get install systemd was not
> enough.

Cool! that was probably new requirement in later Debian versions.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

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: