Modules are not visible with new rootfs build with busybox.

Hi all,
In my recent experiment I build rootfs using busybox. Which compiled successfully.
Steps I followed as below.

mkdir bbb_rootfs
cd bbb_rootfs
mkdir bin dev etc home lib proc sbin sys tmp usr var root
mkdir usr/bin usr/lib usr/sbin
mkdir -p var/log
mkdir dev

tree -d
.
├── bin
├── dev
├── etc
├── home
├── lib
├── proc
├── sbin
├── sys
├── tmp
├── usr
│ ├── bin
│ ├── lib
│ └── sbin
├── va
└── var
└── log
sudo cp -r ./* /path/to/RFS
mknod  /path/to/RFS/dev/console c 5 1
mknod /path/to/RFS/dev/null c 1 3
mknod /path/to/RFS/dev/zero c 1 5
rsync -a /path/toolchain/arm-linux-gnueabihf/lib/ ./lib/
rsync -a /path/toolchain/arm-linux-gnueabihf/lib/ ./usr/lib/
cd ..
git clone https://github.com/mirror/busybox.git ./busybox
cd busybox
git checkout 1_35_stable
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- defconfig
make ARCH=arm CRSOO_COMPILE=arm-linux-gnueabihf- menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CONFIG_PREFIX=/path/to/RFS install

vi /etc/inittab

null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
null::respawn:/bin/cttyhack /bin/login root
null::restart:/sbin/reboot

vi /etc/fstab

proc  /proc proc  defaults  0 0
sysfs /sys  sysfs defaults  0 0

vi /etc/hostname
vivek

vi /etc/passwd
root::0:0:root:/root:/bin/sh


sudo make ARCH=arm modules_install INSTALL_MOD_PATH=/path/to/RFS

I boot my beaglebone and try to see my loaded modules. I got below logs.

U-Boot SPL 2023.04 (Oct 04 2023 - 16:14:54 +0530)
Trying to boot from MMC1


U-Boot 2023.04 (Oct 04 2023 - 16:14:54 +0530)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Core:  160 devices, 18 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing every 1000ms (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
<ethaddr> not set. Validating first E-fuse MAC
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1:      beaglebone-buildroot
Retrieving file: /zImage
append: console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
Retrieving file: /am335x-boneblack.dtb
Kernel image @ 0x82000000 [ 0x000000 - 0x4ee988 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
Working FDT set to 88000000
   Loading Device Tree to 8ffeb000, end 8ffff1be ... OK
Working FDT set to 8ffeb000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.6.0-rc3 (root@riscv-demo) (arm-linux-gnueabihf-gcc (GCC) 14.0.0 20230605 (experimental) [master revision c7fe7ad612bb6aac1d078d215d5700ec4ef70e3c], GNU ld (Linaro_Binutils-2023.06) 2.40.50.20230605) #1 SMP Fri Oct  6 09:19:37 IST 2023
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x9e800000 on node -1
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fdfffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fdfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fdfffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 16 pages/cpu s36052 r8192 d21292 u65536
[    0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 484740K/522240K available (10240K kernel code, 1108K rwdata, 2532K rodata, 1024K init, 283K bss, 21116K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000027] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000493] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.001945] Console: colour dummy device 80x30
[    0.002022] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.090541] CPU: Testing write buffer coherency: ok
[    0.090644] CPU0: Spectre v2: using BPIALL workaround
[    0.090655] pid_max: default: 32768 minimum: 301
[    0.090781] LSM: initializing lsm=capability,integrity
[    0.090948] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090968] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.092436] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.094011] Setting up static identity map for 0x80100000 - 0x80100078
[    0.094289] rcu: Hierarchical SRCU implementation.
[    0.094298] rcu:     Max phase no-delay instances is 1000.
[    0.094995] smp: Bringing up secondary CPUs ...
[    0.095042] smp: Brought up 1 node, 1 CPU
[    0.095054] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.095065] CPU: All CPU(s) started in SVC mode.
[    0.095895] devtmpfs: initialized
[    0.111285] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.111624] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.111660] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.113053] pinctrl core: initialized pinctrl subsystem
[    0.115417] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.117910] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.118502] audit: initializing netlink subsys (disabled)
[    0.119736] thermal_sys: Registered thermal governor 'fair_share'
[    0.119754] thermal_sys: Registered thermal governor 'step_wise'
[    0.119760] thermal_sys: Registered thermal governor 'user_space'
[    0.119869] audit: type=2000 audit(0.110:1): state=initialized audit_enabled=0 res=1
[    0.119942] cpuidle: using governor menu
[    0.135677] No ATAGs?
[    0.135703] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.138558] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.795582] iommu: Default domain type: Translated
[    0.795602] iommu: DMA domain TLB invalidation policy: strict mode
[    0.797000] SCSI subsystem initialized
[    0.798754] pps_core: LinuxPPS API ver. 1 registered
[    0.798767] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.798790] PTP clock support registered
[    0.800687] vgaarb: loaded
[    0.800995] clocksource: Switched to clocksource dmtimer
[    0.801594] VFS: Disk quotas dquot_6.6.0
[    0.801651] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.823351] NET: Registered PF_INET protocol family
[    0.823685] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.825025] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.825059] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.825078] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.825119] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.825218] TCP: Hash tables configured (established 4096 bind 4096)
[    0.825348] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.825376] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.825547] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.826698] RPC: Registered named UNIX socket transport module.
[    0.826716] RPC: Registered udp transport module.
[    0.826722] RPC: Registered tcp transport module.
[    0.826727] RPC: Registered tcp-with-tls transport module.
[    0.826732] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.826755] PCI: CLS 0 bytes, default 64
[    0.828280] Initialise system trusted keyrings
[    0.829104] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.830288] NFS: Registering the id_resolver key type
[    0.830363] Key type id_resolver registered
[    0.830371] Key type id_legacy registered
[    0.830421] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.830886] Key type asymmetric registered
[    0.830901] Asymmetric key parser 'x509' registered
[    0.831126] io scheduler mq-deadline registered
[    0.831139] io scheduler kyber registered
[    0.831223] io scheduler bfq registered
[    0.835125] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
[    0.853696] brd: module loaded
[    0.861591] loop: module loaded
[    0.862494] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.865146] i2c_dev: i2c /dev entries driver
[    0.865967] cpuidle: enable-method property 'ti,am3352' found operations
[    0.866399] sdhci: Secure Digital Host Controller Interface driver
[    0.866410] sdhci: Copyright(c) Pierre Ossman
[    0.866582] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.866834] ledtrig-cpu: registered to indicate activity on CPUs
[    0.867583] Initializing XFRM netlink socket
[    0.867741] NET: Registered PF_INET6 protocol family
[    0.869468] Segment Routing with IPv6
[    0.869541] In-situ OAM (IOAM) with IPv6
[    0.869651] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.870571] NET: Registered PF_PACKET protocol family
[    0.870596] NET: Registered PF_KEY protocol family
[    0.870733] Key type dns_resolver registered
[    0.870933] ThumbEE CPU extension supported.
[    0.870954] Registering SWP/SWPB emulation handler
[    0.871520] omap_voltage_late_init: Voltage driver support not added
[    0.871868] SmartReflex Class3 initialized
[    0.879205] Loading compiled-in X.509 certificates
[    0.920353] platform 44e10800.pinmux: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@10000/scm@0/pinmux@800/clkout2-pins
[    0.920879] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    0.925603] ti-sysc: probe of 44e31000.target-module failed with error -16
[    0.939872] ti-sysc: probe of 48040000.target-module failed with error -16
[    0.952247] OMAP GPIO hardware version 0.1
[    0.964887] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    0.994528] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
[    0.995017] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    1.051007] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    1.072841] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    1.073295] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[    1.073313] cpsw-switch 4a100000.switch: ALE Table size 1024
[    1.073440] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
[    1.073457] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
[    1.073547] cpsw-switch 4a100000.switch: Detected MACID = 6c:ec:eb:a5:a0:34
[    1.075273] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
[    1.085662] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    1.085703] edma 49000000.dma: TI EDMA DMA engine driver
[    1.105816] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.113178] l3-aon-clkctrl:0000:0: failed to disable
[    1.115475] printk: console [ttyS0] disabled
[    1.116255] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 34, base_baud = 3000000) is a 8250
[    1.116329] printk: console [ttyS0] enabled
[    2.071871] tps65217-pmic: Failed to locate of_node [id: -1]
[    2.077904] tps65217-bl: Failed to locate of_node [id: -1]
[    2.088703] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    2.094902] i2c 0-0070: Fixed dependency cycle(s) with /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0/port/endpoint@0
[    2.107665] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.117206] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    2.126122] sdhci-omap 48060000.mmc: Got CD GPIO
[    2.131149] sdhci-omap 48060000.mmc: supply pbias not found, using dummy regulator
[    2.141773] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    2.151136] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
[    2.159663] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    2.174753] clk: Disabling unused clocks
[    2.194876] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[    2.203133] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    2.211560] Waiting for root device /dev/mmcblk0p2...
[    2.271273] mmc1: new high speed MMC card at address 0001
[    2.278089] mmcblk1: mmc1:0001 MMC04G 3.60 GiB
[    2.285255]  mmcblk1: p1 p2
[    2.289634] mmcblk1boot0: mmc1:0001 MMC04G 2.00 MiB
[    2.296871] mmcblk1boot1: mmc1:0001 MMC04G 2.00 MiB
[    2.302956] mmc0: new high speed SDHC card at address e624
[    2.309594] mmcblk0: mmc0:e624 SS16G 14.8 GiB
[    2.317249] mmcblk1rpmb: mmc1:0001 MMC04G 128 KiB, chardev (250:0)
[    2.323947]  mmcblk0: p1 p2
[    2.397957] EXT4-fs (mmcblk0p2): recovery complete
[    2.410536] EXT4-fs (mmcblk0p2): mounted filesystem 1a64b592-aa5f-414f-9644-5e7e70d5bbe7 r/w with ordered data mode. Quota mode: none.
[    2.422885] VFS: Mounted root (ext4 filesystem) on device 179:26.
[    2.429281] devtmpfs: mounted
[    2.433661] Freeing unused kernel image (initmem) memory: 1024K
[    2.440159] Run /sbin/init as init process
login[71]: root login on 'ttyS0'
/root # pwd
/root
/root # ifconfig
/root # lsmod
/root # depmod -a
depmod: deleting stale modules.dep.bb.new
depmod: short read
/root # lsmod
/root #
/root #
/root #
/root #
/root #

Can someone point out Why I am not getting modules list.

Thanks & Regards
Vivek yadav

$ cd /proc/
$ ls -al

Check the user access permissions, the modules info should be there.

Hi @foxsquirrel,

How it connect with permission issue ? I didn’t get you.
In /proc directory process related content is there only.
Please check below log for information.

/proc #
/proc #
/proc # ls -al
total 4
dr-xr-xr-x  123 0        0                0 Jan  1 00:00 .
drwxr-xr-x   14 0        0             4096 Jan  1 00:00 ..
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 1
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 10
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 11
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 12
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 13
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 14
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 15
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 16
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 17
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 18
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 19
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 2
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 20
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 21
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 22
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 23
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 24
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 25
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 26
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 27
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 28
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 29
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 3
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 30
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 31
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 32
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 33
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 34
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 35
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 36
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 37
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 38
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 39
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 4
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 40
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 41
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 42
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 43
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 44
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 46
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 47
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 48
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 49
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 5
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 50
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 51
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 52
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 53
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 54
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 55
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 56
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 57
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 58
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 59
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 6
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 60
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 61
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 62
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 63
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 64
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 65
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 67
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 7
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 70
dr-xr-xr-x    9 0        0                0 Jan  1 00:01 74
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 8
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 9
-r--r--r--    1 0        0                0 Jan  1 00:00 buddyinfo
dr-xr-xr-x    4 0        0                0 Jan  1 00:00 bus
-r--r--r--    1 0        0                0 Jan  1 00:00 cgroups
-r--r--r--    1 0        0               71 Jan  1 00:00 cmdline
-r--r--r--    1 0        0            44754 Jan  1 00:00 config.gz
-r--r--r--    1 0        0                0 Jan  1 00:00 consoles
dr-xr-xr-x    4 0        0                0 Jan  1 00:00 cpu
-r--r--r--    1 0        0                0 Jan  1 00:00 cpuinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 crypto
lrwxrwxrwx    1 0        0               29 Jan  1 00:00 device-tree -> /sys/firmware/devicetree/base
-r--r--r--    1 0        0                0 Jan  1 00:00 devices
-r--r--r--    1 0        0                0 Jan  1 00:00 diskstats
dr-xr-xr-x    2 0        0                0 Jan  1 00:00 driver
-r--r--r--    1 0        0                0 Jan  1 00:00 execdomains
-r--r--r--    1 0        0                0 Jan  1 00:00 fb
-r--r--r--    1 0        0                0 Jan  1 00:00 filesystems
dr-xr-xr-x    7 0        0                0 Jan  1 00:00 fs
-r--r--r--    1 0        0                0 Jan  1 00:00 interrupts
-r--r--r--    1 0        0                0 Jan  1 00:00 iomem
-r--r--r--    1 0        0                0 Jan  1 00:00 ioports
dr-xr-xr-x   21 0        0                0 Jan  1 00:00 irq
-r--r--r--    1 0        0                0 Jan  1 00:00 kallsyms
-r--r--r--    1 0        0                0 Jan  1 00:00 key-users
-r--r--r--    1 0        0                0 Jan  1 00:00 keys
-r--------    1 0        0                0 Jan  1 00:00 kmsg
-r--------    1 0        0                0 Jan  1 00:00 kpagecgroup
-r--------    1 0        0                0 Jan  1 00:00 kpagecount
-r--------    1 0        0                0 Jan  1 00:00 kpageflags
-r--r--r--    1 0        0                0 Jan  1 00:00 loadavg
-r--r--r--    1 0        0                0 Jan  1 00:00 locks
-r--r--r--    1 0        0                0 Jan  1 00:00 meminfo
-r--r--r--    1 0        0                0 Jan  1 00:00 misc
-r--r--r--    1 0        0                0 Jan  1 00:00 modules
lrwxrwxrwx    1 0        0               11 Jan  1 00:00 mounts -> self/mounts
-r--r--r--    1 0        0                0 Jan  1 00:00 mtd
lrwxrwxrwx    1 0        0                8 Jan  1 00:00 net -> self/net
-r--------    1 0        0                0 Jan  1 00:00 pagetypeinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 partitions
-r--r--r--    1 0        0                0 Jan  1 00:00 schedstat
dr-xr-xr-x    4 0        0                0 Jan  1 00:00 scsi
lrwxrwxrwx    1 0        0                0 Jan  1 00:00 self -> 74
-r--------    1 0        0                0 Jan  1 00:00 slabinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 softirqs
-r--r--r--    1 0        0                0 Jan  1 00:00 stat
-r--r--r--    1 0        0                0 Jan  1 00:00 swaps
dr-xr-xr-x    1 0        0                0 Jan  1 00:00 sys
--w-------    1 0        0                0 Jan  1 00:00 sysrq-trigger
dr-xr-xr-x    5 0        0                0 Jan  1 00:00 sysvipc
lrwxrwxrwx    1 0        0                0 Jan  1 00:00 thread-self -> 74/task/74
-r--------    1 0        0                0 Jan  1 00:00 timer_list
dr-xr-xr-x    6 0        0                0 Jan  1 00:00 tty
-r--r--r--    1 0        0                0 Jan  1 00:00 uptime
-r--r--r--    1 0        0                0 Jan  1 00:00 version
-r--------    1 0        0                0 Jan  1 00:00 vmallocinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 vmstat
-r--r--r--    1 0        0                0 Jan  1 00:00 zoneinfo
/proc #

Thanks & Regards
Vivek Yadav

This is not from BB, however it is an example of what your ls should look like.


total 4
dr-xr-xr-x 148 root             root                 0 Oct  9 22:35 .
drwxr-xr-x  20 root             root              4096 Sep 19 17:30 ..
dr-xr-xr-x   9 root             root                 0 Oct  9 22:35 1
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 10
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 100
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 101
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 102
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 104
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 105
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 11
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 12
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 13
dr-xr-xr-x   9 rpc              rpc                  0 Oct  9 22:35 130
dr-xr-xr-x   9 root             root                 0 Oct  9 22:35 131
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 14
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 15
dr-xr-xr-x   9 root             root                 0 Oct  9 22:35 150
dr-xr-xr-x   9 systemd-resolve  systemd-resolve      0 Oct  9 22:35 153
dr-xr-xr-x   9 systemd-timesync systemd-timesync     0 Oct  9 22:35 154
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 16
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 17
dr-xr-xr-x   9 root             root                 0 Oct 10 01:08 18
dr-xr-xr-x   9 root             root                 0 Oct  9 22:35 181
dr-xr-xr-x   9 avahi            avahi                0 Oct  9 22:35 188
dr-xr-xr-x   9 root             root                 0 Oct  9 22:35 189
dr-xr-xr-x   9 root             root                 0 Oct  9 22:35 190
dr-xr-xr-x   9 avahi            avahi                0 Oct  9 22:35 191
dr-xr-xr-x   9 root             root                 0 Oct  9 22:35 192
dr-xr-xr-x   9 messagebus       messagebus           0 Oct  9 22:35 193

I don’t see the ownership in your results, can you chown root:root and the zero values become actual file owners.

/proc/modules must be root:root

@foxsquirrel

Please find logs. I am not able to change owner 0 to root.

/root #
/root #
/root #
/root #
/root # cd /proc/
/proc # ls
1              32             56             cpuinfo        modules
10             33             57             crypto         mounts
11             34             58             device-tree    mtd
12             35             59             devices        net
13             36             6              diskstats      pagetypeinfo
14             37             60             driver         partitions
15             38             61             execdomains    schedstat
16             39             62             fb             scsi
17             4              63             filesystems    self
18             40             64             fs             slabinfo
19             41             65             interrupts     softirqs
2              42             66             iomem          stat
20             43             67             ioports        swaps
21             44             7              irq            sys
22             46             71             kallsyms       sysrq-trigger
23             47             72             key-users      sysvipc
24             48             8              keys           thread-self
25             49             9              kmsg           timer_list
26             5              buddyinfo      kpagecgroup    tty
27             50             bus            kpagecount     uptime
28             51             cgroups        kpageflags     version
29             52             cmdline        loadavg        vmallocinfo
3              53             config.gz      locks          vmstat
30             54             consoles       meminfo        zoneinfo
31             55             cpu            misc
/proc # chown root:root /proc
chown: unknown user/group root:root
/proc # ^C
/proc # cd m
/proc # ls -la
total 4
dr-xr-xr-x  124 0        0                0 Jan  1 00:00 .
drwxr-xr-x   14 0        0             4096 Jan  1 00:00 ..
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 1
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 10
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 11
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 12
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 13
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 14
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 15
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 16
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 17
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 18
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 19
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 2
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 20
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 21
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 22
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 23
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 24
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 25
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 26
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 27
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 28
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 29
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 3
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 30
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 31
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 32
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 33
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 34
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 35
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 36
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 37
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 38
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 39
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 4
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 40
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 41
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 42
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 43
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 44
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 46
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 47
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 48
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 49
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 5
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 50
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 51
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 52
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 53
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 54
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 55
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 56
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 57
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 58
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 59
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 6
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 60
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 61
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 62
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 63
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 64
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 65
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 66
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 67
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 7
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 71
dr-xr-xr-x    9 0        0                0 Jan  1 00:01 74
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 8
dr-xr-xr-x    9 0        0                0 Jan  1 00:00 9
-r--r--r--    1 0        0                0 Jan  1 00:00 buddyinfo
dr-xr-xr-x    4 0        0                0 Jan  1 00:00 bus
-r--r--r--    1 0        0                0 Jan  1 00:00 cgroups
-r--r--r--    1 0        0               71 Jan  1 00:00 cmdline
-r--r--r--    1 0        0            44754 Jan  1 00:00 config.gz
-r--r--r--    1 0        0                0 Jan  1 00:00 consoles
dr-xr-xr-x    4 0        0                0 Jan  1 00:00 cpu
-r--r--r--    1 0        0                0 Jan  1 00:00 cpuinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 crypto
lrwxrwxrwx    1 0        0               29 Jan  1 00:00 device-tree -> /sys/firmware/devicetree/base
-r--r--r--    1 0        0                0 Jan  1 00:00 devices
-r--r--r--    1 0        0                0 Jan  1 00:00 diskstats
dr-xr-xr-x    2 0        0                0 Jan  1 00:00 driver
-r--r--r--    1 0        0                0 Jan  1 00:00 execdomains
-r--r--r--    1 0        0                0 Jan  1 00:00 fb
-r--r--r--    1 0        0                0 Jan  1 00:00 filesystems
dr-xr-xr-x    7 0        0                0 Jan  1 00:00 fs
-r--r--r--    1 0        0                0 Jan  1 00:00 interrupts
-r--r--r--    1 0        0                0 Jan  1 00:00 iomem
-r--r--r--    1 0        0                0 Jan  1 00:00 ioports
dr-xr-xr-x   21 0        0                0 Jan  1 00:00 irq
-r--r--r--    1 0        0                0 Jan  1 00:00 kallsyms
-r--r--r--    1 0        0                0 Jan  1 00:00 key-users
-r--r--r--    1 0        0                0 Jan  1 00:00 keys
-r--------    1 0        0                0 Jan  1 00:00 kmsg
-r--------    1 0        0                0 Jan  1 00:00 kpagecgroup
-r--------    1 0        0                0 Jan  1 00:00 kpagecount
-r--------    1 0        0                0 Jan  1 00:00 kpageflags
-r--r--r--    1 0        0                0 Jan  1 00:00 loadavg
-r--r--r--    1 0        0                0 Jan  1 00:00 locks
-r--r--r--    1 0        0                0 Jan  1 00:00 meminfo
-r--r--r--    1 0        0                0 Jan  1 00:00 misc
-r--r--r--    1 0        0                0 Jan  1 00:00 modules
lrwxrwxrwx    1 0        0               11 Jan  1 00:00 mounts -> self/mounts
-r--r--r--    1 0        0                0 Jan  1 00:00 mtd
lrwxrwxrwx    1 0        0                8 Jan  1 00:00 net -> self/net
-r--------    1 0        0                0 Jan  1 00:00 pagetypeinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 partitions
-r--r--r--    1 0        0                0 Jan  1 00:00 schedstat
dr-xr-xr-x    4 0        0                0 Jan  1 00:00 scsi
lrwxrwxrwx    1 0        0                0 Jan  1 00:00 self -> 74
-r--------    1 0        0                0 Jan  1 00:00 slabinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 softirqs
-r--r--r--    1 0        0                0 Jan  1 00:00 stat
-r--r--r--    1 0        0                0 Jan  1 00:00 swaps
dr-xr-xr-x    1 0        0                0 Jan  1 00:00 sys
--w-------    1 0        0                0 Jan  1 00:00 sysrq-trigger
dr-xr-xr-x    5 0        0                0 Jan  1 00:00 sysvipc
lrwxrwxrwx    1 0        0                0 Jan  1 00:00 thread-self -> 74/task/74
-r--------    1 0        0                0 Jan  1 00:00 timer_list
dr-xr-xr-x    6 0        0                0 Jan  1 00:00 tty
-r--r--r--    1 0        0                0 Jan  1 00:00 uptime
-r--r--r--    1 0        0                0 Jan  1 00:00 version
-r--------    1 0        0                0 Jan  1 00:00 vmallocinfo
-r--r--r--    1 0        0                0 Jan  1 00:00 vmstat
-r--r--r--    1 0        0                0 Jan  1 00:00 zoneinfo
/proc # chown root:root
BusyBox v1.35.0 (2023-10-08 11:25:45 IST) multi-call binary.

Usage: chown [-RhLHPcvf]... USER[:[GRP]] FILE...

Change the owner and/or group of FILEs to USER and/or GRP

        -h      Affect symlinks instead of symlink targets
        -L      Traverse all symlinks to directories
        -H      Traverse symlinks on command line only
        -P      Don't traverse symlinks (default)
        -R      Recurse
        -c      List changed files
        -v      Verbose
        -f      Hide errors
/proc # chown -R root:root /proc
chown: unknown user/group root:root
/proc #

Thanks & Regards
Vivek Yadav

You might have to look into how busybox is configured for permissions of the rootfs, I don’t use it. Not sure if that might be in the actual kernel config since that is proc. Sorry, I could not get you up and running.
Without correct file permissions commands will not execute.