Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Failing to install on a BeagleBone Black (armhf)

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
joelpet
Posts: 6
Joined: 2021-12-03 14:56

Failing to install on a BeagleBone Black (armhf)

#1 Post by joelpet »

I am trying to install Debian stable (bullseye) on a TI AM335x BeagleBone Black.

I have used my helper scripts to download and flash the Debian installation SD card image to a memory card mounted at /dev/mmcblk0.

Code: Select all

❯ ./flash-debinst-bbb.sh /dev/mmcblk0 bullseye current hd-media
--------------------------------------------------------------------------------
Remember to download a Debian installation ISO from
https://cdimage.debian.org/cdimage/ and copy it onto the flashed SD card before
booting your BeagleBone Black from it.
--------------------------------------------------------------------------------
mkdir -p debian/dists/bullseye/main/installer-armhf/current/images/
curl --location --no-progress-meter --output debian/dists/bullseye/main/installer-armhf/current/images/SHA256SUMS 'http://ftp.se.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/SHA256SUMS'
curl --location --no-progress-meter --create-dirs --output debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/firmware.BeagleBoneBlack.img.gz "http://ftp.se.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/firmware.BeagleBoneBlack.img.gz"
grep 'hd-media/SD-card-images/firmware.BeagleBoneBlack.img.gz' debian/dists/bullseye/main/installer-armhf/current/images/SHA256SUMS | awk '{print $1, "./debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/firmware.BeagleBoneBlack.img.gz"}' | sha256sum --check -
./debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/firmware.BeagleBoneBlack.img.gz: OK
curl --location --no-progress-meter --create-dirs --output debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/partition.img.gz "http://ftp.se.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/partition.img.gz"
grep 'hd-media/SD-card-images/partition.img.gz' debian/dists/bullseye/main/installer-armhf/current/images/SHA256SUMS | awk '{print $1, "./debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/partition.img.gz"}' | sha256sum --check -
./debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/partition.img.gz: OK
zcat debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/firmware.BeagleBoneBlack.img.gz debian/dists/bullseye/main/installer-armhf/current/images/hd-media/SD-card-images/partition.img.gz > out/hd-media_bullseye_current.img
ln --force "out/hd-media_bullseye_current.img" "out/hd-media.img"
Overwrite data on device /dev/mmcblk0? [y|N] y
 146MiB 0:00:00 [ 817MiB/s] [=======================================================================>] 100%            
When booting the BeagleBone Black from the SD card I get the following output in the serial console:

Code: Select all

U-Boot SPL 2021.01+dfsg-5 (May 23 2021 - 04:32:45 +0000)
Trying to boot from MMC1


U-Boot 2021.01+dfsg-5 (May 23 2021 - 04:32:45 +0000)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
WDT:   Started with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   Could not get PHY for ethernet@4a100000: addr 0
eth2: ethernet@4a100000, eth3: usb_ether
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
1575 bytes read in 3 ms (512.7 KiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
Mainline u-boot / new-style environment detected.
This installer medium does not contain a suitable device-tree file for
this system (am335x-boneblack.dtb). Aborting boot process.
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1575 bytes read in 3 ms (512.7 KiB/s)
## Executing script at 80000000
Mainline u-boot / new-style environment detected.
4956672 bytes read in 324 ms (14.6 MiB/s)
62852 bytes read in 100 ms (613.3 KiB/s)
15339358 bytes read in 1000 ms (14.6 MiB/s)
Booting the Debian installer... 

## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8f15f000, end 8fffff5e ... OK
   Loading Device Tree to 8f14c000, end 8f15e583 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.0-9-armmp (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 SMP Debian 5.10.70-1 (2021-09-30)
[    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] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x9e800000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x000000009fdfffff]
[    0.000000]   Normal   empty
[    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 21 pages/cpu s54604 r8192 d23220 u86016
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line:  console=ttyO0,115200n8
[    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] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 466092K/522240K available (11264K kernel code, 1667K rwdata, 3188K rodata, 2048K init, 333K bss, 39764K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x30/0x42c with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 37383 entries in 110 pages
[    0.000000] ftrace: allocated 110 pages with 5 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 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] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000031] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000885] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.004361] Console: colour dummy device 80x30
[    0.004449] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.048943] pid_max: default: 32768 minimum: 301
[    0.049289] LSM: Security Framework initializing
[    0.049401] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.049661] AppArmor: AppArmor initialized
[    0.049682] TOMOYO Linux initialized
[    0.049786] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.049805] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051256] CPU: Testing write buffer coherency: ok
[    0.051348] CPU0: Spectre v2: using BPIALL workaround
[    0.051816] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.053123] Setting up static identity map for 0x80300000 - 0x803000ac
[    0.055340] rcu: Hierarchical SRCU implementation.
[    0.059162] EFI services will not be available.
[    0.059834] smp: Bringing up secondary CPUs ...
[    0.059856] smp: Brought up 1 node, 1 CPU
[    0.059868] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.059879] CPU: All CPU(s) started in SVC mode.
[    0.060752] devtmpfs: initialized
[    0.076677] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.077145] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.077194] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.078836] pinctrl core: initialized pinctrl subsystem
[    0.080855] DMI not present or invalid.
[    0.081647] NET: Registered protocol family 16
[    0.084392] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.103839] l3-aon-clkctrl:0000:0: failed to disable
[    0.104515] audit: initializing netlink subsys (disabled)
[    0.107182] thermal_sys: Registered thermal governor 'fair_share'
[    0.107199] thermal_sys: Registered thermal governor 'bang_bang'
[    0.107217] thermal_sys: Registered thermal governor 'step_wise'
[    0.107228] thermal_sys: Registered thermal governor 'user_space'
[    0.107237] thermal_sys: Registered thermal governor 'power_allocator'
[    0.109093] audit: type=2000 audit(0.096:1): state=initialized audit_enabled=0 res=1
[    1.032964] random: fast init done
[    1.301289] No ATAGs?
[    1.301319] hw-breakpoint: debug architecture 0x4 unsupported.
[    1.304704] Serial: AMBA PL011 UART driver
[    1.325327] Kprobes globally optimized
[    2.929396] iommu: Default domain type: Translated 
[    2.931464] vgaarb: loaded
[    2.932855] mc: Linux media interface: v0.10
[    2.932914] videodev: Linux video capture interface: v2.00
[    2.935423] NetLabel: Initializing
[    2.935450] NetLabel:  domain hash size = 128
[    2.935458] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    2.935563] NetLabel:  unlabeled traffic allowed by default
[    2.936180] clocksource: Switched to clocksource dmtimer
[    3.027009] VFS: Disk quotas dquot_6.6.0
[    3.027146] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.028141] AppArmor: AppArmor Filesystem Enabled
[    3.040714] NET: Registered protocol family 2
[    3.040956] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    3.042297] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    3.042359] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    3.042427] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    3.042488] TCP: Hash tables configured (established 4096 bind 4096)
[    3.042644] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    3.042680] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    3.042906] NET: Registered protocol family 1
[    3.042961] NET: Registered protocol family 44
[    3.042987] PCI: CLS 0 bytes, default 64
[    3.043769] Trying to unpack rootfs image as initramfs...
[    4.177630] Freeing initrd memory: 14980K
[    4.178597] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    4.181393] Initialise system trusted keyrings
[    4.181482] Key type blacklist registered
[    4.181892] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    4.189903] zbud: loaded
[    4.191548] integrity: Platform Keyring initialized
[    4.191589] Key type asymmetric registered
[    4.191603] Asymmetric key parser 'x509' registered
[    4.191680] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    4.192059] io scheduler mq-deadline registered
[    4.355248] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    4.355292] omap_gpio 44e07000.gpio: Could not register gpio chip -517
[    4.599817] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    4.599860] omap_gpio 4804c000.gpio: Could not register gpio chip -517
[    4.627561] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    4.665597] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    4.665639] omap_gpio 481ac000.gpio: Could not register gpio chip -517
[    4.678338] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    4.678375] omap_gpio 481ae000.gpio: Could not register gpio chip -517
[    4.748783] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    4.748835] edma 49000000.dma: TI EDMA DMA engine driver
[    4.777022] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    4.803014] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
[    4.807828] Serial: AMBA driver
[    4.810082] omap_uart 44e09000.serial: no wakeirq for uart0
[    4.810524] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 20, base_baud = 3000000) is a OMAP UART0
[    5.615188] printk: console [ttyO0] enabled
[    5.622812] STM32 USART driver initialized
[    5.632048] libphy: Fixed MDIO Bus: probed
[    5.638124] mousedev: PS/2 mouse device common for all mice
[    5.648365] omap_rtc 44e3e000.rtc: registered as rtc0
[    5.653766] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[    5.672945] ledtrig-cpu: registered to indicate activity on CPUs
[    5.683913] NET: Registered protocol family 10
[    5.724453] Segment Routing with IPv6
[    5.728586] mip6: Mobile IPv6
[    5.731697] NET: Registered protocol family 17
[    5.736715] mpls_gso: MPLS GSO support
[    5.740768] ThumbEE CPU extension supported.
[    5.745349] Registering SWP/SWPB emulation handler
[    5.750421] omap_voltage_late_init: Voltage driver support not added
[    5.757083] sr_dev_init: No voltage domain specified for smartreflex0. Cannot initialize
[    5.765529] sr_dev_init: No voltage domain specified for smartreflex1. Cannot initialize
[    5.774581] SmartReflex Class3 initialized
[    5.779286] registered taskstats version 1
[    5.783632] Loading compiled-in X.509 certificates
[    6.156152] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    6.165553] Loaded X.509 cert 'Debian Secure Boot Signer 2021 - linux: 4b6ef5abca669825178e052c84667ccbc0531f8c'
[    6.176448] zswap: loaded using pool lzo/zbud
[    6.182106] Key type ._fscrypt registered
[    6.186486] Key type .fscrypt registered
[    6.190648] Key type fscrypt-provisioning registered
[    6.196145] AppArmor: AppArmor sha1 policy hashing enabled
[    6.220809] OMAP GPIO hardware version 0.1
[    6.228643] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    6.238297] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    6.261330] Freeing unused kernel memory: 2048K
[    6.267853] Checked W+X mappings: passed, no W+X pages found
[    6.273829] Run /init as init process
[    6.803765] leds_gpio: module verification failed: signature and/or required key missing - tainting kernel
[    7.220568] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
[    7.299762] usbcore: registered new interface driver usbfs
[    7.349845] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
[    7.386616] sdhci: Secure Digital Host Controller Interface driver
[    7.393221] sdhci: Copyright(c) Pierre Ossman
[    7.398009] usbcore: registered new interface driver hub
[    7.432501] usbcore: registered new device driver usb
[    7.517771] sdhci-pltfm: SDHCI platform and OF driver helper
[    7.617756] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    7.626993] sdhci-omap 48060000.mmc: Got CD GPIO
[    7.639712] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    7.743411] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    7.759238] omap_rng 48310000.rng: Random Number Generator ver. 20
[    7.766002] random: crng init done
[    7.847781] ------------[ cut here ]------------
[    7.852626] kernel BUG at drivers/usb/musb/musb_core.c:2158!
[    7.858520] Internal error: Oops - BUG: 0 [#1] SMP ARM
[    7.863875] Modules linked in: omap_rng(E) rng_core(E) sdhci_omap(E) musb_dsps(E) sdhci_pltfm(E) musb_hdrc(E) udc_core(E) sdhci(E) usbcore(E) phy_am335x(E) phy_generic(E) phy_am335x_control(E) leds_gpio(E)
[    7.882970] CPU: 0 PID: 66 Comm: kworker/0:4 Tainted: G            E     5.10.0-9-armmp #1 Debian 5.10.70-1
[    7.893114] Hardware name: Generic AM33XX (Flattened Device Tree)
[    7.899481] Workqueue: events deferred_probe_work_func
[    7.904893] PC is at musb_probe+0xca4/0xdd8 [musb_hdrc]
[    7.910347] LR is at devm_kmalloc+0x8c/0xac
[    7.914701] pc : [<bf0f30a4>]    lr : [<c099452c>]    psr: 20000013
[    7.921225] sp : c1e3fcc8  ip : c1e3fca0  fp : c1e3fd8c
[    7.926663] r10: 00000010  r9 : bf10a048  r8 : c15ed5ec
[    7.932101] r7 : c1f3d940  r6 : c1953040  r5 : e0000400  r4 : c1952040
[    7.938897] r3 : 000000d3  r2 : c19532e0  r1 : 60000013  r0 : c1952040
[    7.945694] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    7.953124] Control: 10c5387d  Table: 81e6c019  DAC: 00000051
[    7.959113] Process kworker/0:4 (pid: 66, stack limit = 0x660185dc)
[    7.965637] Stack: (0xc1e3fcc8 to 0xc1e40000)
[    7.970177] fcc0:                   c0ae5e98 c0d0e22c 00000000 c1e3fd28 c105a4b0 df96e300
[    7.978698] fce0: c1e3fd1c c1e3fcf0 00000034 c0ae5e20 00000000 c1eb9410 c1eb9400 c1e23bc0
[    7.987219] fd00: bf10a048 00000000 c15ed5ec bf10a048 c1e3fd64 c1e3fd20 c0ae649c c0ae5ed0
[    7.995739] fd20: ffffffff c10a3558 00000000 00000000 00000000 00000000 00000000 00000000
[    8.004261] fd40: 00000000 00000000 00000000 76ccd31d c1e3fd84 c1eb9410 c1e3fd7c 76ccd31d
[    8.012780] fd60: c09ab5f8 00000000 c1eb9410 bf10a048 00000000 c15ed5ec bf10a048 00000010
[    8.021299] fd80: c1e3fdac c1e3fd90 c0991a34 bf0f240c c1eb9410 c15ed5e4 00000000 00000000
[    8.029820] fda0: c1e3fdec c1e3fdb0 c098ee58 c09919e8 c1eb9410 c1eb9410 c1eb9518 00000000
[    8.038343] fdc0: c1e3fdec c1eb9410 bf10a048 c1e3fe74 c1eb9410 00000000 c1068510 c1590788
[    8.046861] fde0: c1e3fe1c c1e3fdf0 c098f6f0 c098ed5c c1e3fe74 c1eb9410 00000001 bf10a048
[    8.055381] fe00: c1e3fe74 c1eb9410 00000000 c1068510 c1e3fe3c c1e3fe20 c098f9b8 c098f5fc
[    8.063902] fe20: 00000000 c1e3fe74 c098f924 c1554d60 c1e3fe6c c1e3fe40 c098c718 c098f930
[    8.072424] fe40: c1e3fe6c c18fbc6c c1f3dd38 76ccd31d c1eb9410 c1eb9410 00000001 c1eb9454
[    8.080947] fe60: c1e3fe9c c1e3fe70 c098f32c c098c694 c1554d0c c1eb9410 00000001 76ccd31d
[    8.089468] fe80: c1e3feb4 c1f3d254 c1554fd8 c1eb9410 c1e3feac c1e3fea0 c098fa38 c098f258
[    8.097988] fea0: c1e3fecc c1e3feb0 c098dc78 c098fa28 c1f3d254 c1eb9410 c1554d0c c1554d60
[    8.106506] fec0: c1e3fefc c1e3fed0 c098e5d8 c098dbf0 c098e530 c1554d44 c1e12d00 df940500
[    8.115023] fee0: df943900 00000000 00000000 00000000 c1e3ff3c c1e3ff00 c036dcf8 c098e53c
[    8.123542] ff00: c1e366c0 c1e3e000 c1e3ff24 c1e3ff18 c036f3a8 c1e12d00 df940500 c1e12d14
[    8.132063] ff20: df940518 c1404d00 00000008 df940500 c1e3ff74 c1e3ff40 c036e0b4 c036db28
[    8.140583] ff40: c1e3ff64 c1e3e000 c1e3ff74 c1e54800 c1e23d80 00000000 c1e3e000 c036e04c
[    8.149102] ff60: c1e12d00 c1969e84 c1e3ffac c1e3ff78 c0374be0 c036e058 ffffe000 c1e54824
[    8.157622] ff80: c1e3ffac c1e23d80 c0374a78 00000000 00000000 00000000 00000000 00000000
[    8.166140] ffa0: 00000000 c1e3ffb0 c03001a8 c0374a84 00000000 00000000 00000000 00000000
[    8.174657] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.183180] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    8.191697] Backtrace: 
[    8.194272] [<bf0f2400>] (musb_probe [musb_hdrc]) from [<c0991a34>] (platform_drv_probe+0x58/0xa8)
[    8.203607]  r10:00000010 r9:bf10a048 r8:c15ed5ec r7:00000000 r6:bf10a048 r5:c1eb9410
[    8.211759]  r4:00000000
[    8.214400] [<c09919dc>] (platform_drv_probe) from [<c098ee58>] (really_probe+0x108/0x4fc)
[    8.223008]  r7:00000000 r6:00000000 r5:c15ed5e4 r4:c1eb9410
[    8.228905] [<c098ed50>] (really_probe) from [<c098f6f0>] (driver_probe_device+0x100/0x1d4)
[    8.237605]  r10:c1590788 r9:c1068510 r8:00000000 r7:c1eb9410 r6:c1e3fe74 r5:bf10a048
[    8.245759]  r4:c1eb9410
[    8.248400] [<c098f5f0>] (driver_probe_device) from [<c098f9b8>] (__device_attach_driver+0x94/0xf8)
[    8.257825]  r9:c1068510 r8:00000000 r7:c1eb9410 r6:c1e3fe74 r5:bf10a048 r4:00000001
[    8.265892] [<c098f924>] (__device_attach_driver) from [<c098c718>] (bus_for_each_drv+0x90/0xe0)
[    8.275039]  r7:c1554d60 r6:c098f924 r5:c1e3fe74 r4:00000000
[    8.280935] [<c098c688>] (bus_for_each_drv) from [<c098f32c>] (__device_attach+0xe0/0x1d4)
[    8.289542]  r6:c1eb9454 r5:00000001 r4:c1eb9410
[    8.294354] [<c098f24c>] (__device_attach) from [<c098fa38>] (device_initial_probe+0x1c/0x20)
[    8.303232]  r6:c1eb9410 r5:c1554fd8 r4:c1f3d254
[    8.308043] [<c098fa1c>] (device_initial_probe) from [<c098dc78>] (bus_probe_device+0x94/0x9c)
[    8.317013] [<c098dbe4>] (bus_probe_device) from [<c098e5d8>] (deferred_probe_work_func+0xa8/0xec)
[    8.326343]  r7:c1554d60 r6:c1554d0c r5:c1eb9410 r4:c1f3d254
[    8.332250] [<c098e530>] (deferred_probe_work_func) from [<c036dcf8>] (process_one_work+0x1dc/0x530)
[    8.341763]  r10:00000000 r9:00000000 r8:00000000 r7:df943900 r6:df940500 r5:c1e12d00
[    8.349917]  r4:c1554d44 r3:c098e530
[    8.353642] [<c036db1c>] (process_one_work) from [<c036e0b4>] (worker_thread+0x68/0x57c)
[    8.362071]  r10:df940500 r9:00000008 r8:c1404d00 r7:df940518 r6:c1e12d14 r5:df940500
[    8.370225]  r4:c1e12d00
[    8.372872] [<c036e04c>] (worker_thread) from [<c0374be0>] (kthread+0x168/0x16c)
[    8.380578]  r10:c1969e84 r9:c1e12d00 r8:c036e04c r7:c1e3e000 r6:00000000 r5:c1e23d80
[    8.388731]  r4:c1e54800
[    8.391372] [<c0374a78>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c)
[    8.398891] Exception stack(0xc1e3ffb0 to 0xc1e3fff8)
[    8.404152] ffa0:                                     00000000 00000000 00000000 00000000
[    8.412670] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.421188] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    8.428077]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0374a78
[    8.436231]  r4:c1e23d80
[    8.438872] Code: 9afffe57 eaffffd1 e3e0500b eafffde5 (e7f001f2) 
[    8.445224] ---[ end trace 9c685a276aab1089 ]---
[    8.676378] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    8.720556] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA

After that, it seems that the boot process is stuck—there is no more output, even if waiting for a long time.

---

Repeating the procedure with Debian oldstable (buster) gives the following output in the serial console:

Code: Select all

U-Boot SPL 2019.01+dfsg-7 (May 14 2019 - 02:07:44 +0000)
Trying to boot from MMC1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment



U-Boot 2019.01+dfsg-7 (May 14 2019 - 02:07:44 +0000)

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
1575 bytes read in 3 ms (512.7 KiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
Mainline u-boot / new-style environment detected.
This installer medium does not contain a suitable device-tree file for
this system (am335x-boneblack.dtb). Aborting boot process.
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1575 bytes read in 3 ms (512.7 KiB/s)
## Executing script at 80000000
Mainline u-boot / new-style environment detected.
4272640 bytes read in 275 ms (14.8 MiB/s)
34893 bytes read in 40 ms (851.6 KiB/s)
16526324 bytes read in 1057 ms (14.9 MiB/s)
Booting the Debian installer... 

## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8f03d000, end 8ffffbf4 ... OK
   Loading Device Tree to 8f031000, end 8f03c84c ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.0-18-armmp (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.208-1 (2021-09-29)
[    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] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x9e800000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] random: get_random_bytes called from start_kernel+0xa0/0x504 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu s40268 r8192 d21172 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line:  console=ttyO0,115200n8
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 467660K/522240K available (9216K kernel code, 1112K rwdata, 2592K rodata, 2048K init, 315K bss, 38196K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0000000 - 0xff800000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdfe00000   ( 510 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   (1113 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 316 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 32842 entries in 97 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    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] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000038] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000050] OMAP clocksource: timer1 at 24000000 Hz
[    0.003482] timer_probe: no matching timers found
[    0.003783] Console: colour dummy device 80x30
[    0.003867] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.023135] pid_max: default: 32768 minimum: 301
[    0.023419] Security Framework initialized
[    0.023437] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.023578] AppArmor: AppArmor initialized
[    0.023682] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.023696] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.024865] CPU: Testing write buffer coherency: ok
[    0.024939] CPU0: Spectre v2: using BPIALL workaround
[    0.025403] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.026205] Setting up static identity map for 0x80300000 - 0x803000a0
[    0.027877] rcu: Hierarchical SRCU implementation.
[    0.031779] EFI services will not be available.
[    0.032348] smp: Bringing up secondary CPUs ...
[    0.032364] smp: Brought up 1 node, 1 CPU
[    0.032374] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.032383] CPU: All CPU(s) started in SVC mode.
[    0.033938] devtmpfs: initialized
[    0.043516] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.043829] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.043856] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.045387] pinctrl core: initialized pinctrl subsystem
[    0.047331] DMI not present or invalid.
[    0.047829] NET: Registered protocol family 16
[    0.050512] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.077037] l4_wkup_cm:clk:0010:0: failed to disable
[    0.129195] audit: initializing netlink subsys (disabled)
[    0.135235] audit: type=2000 audit(0.120:1): state=initialized audit_enabled=0 res=1
[    0.138663] OMAP GPIO hardware version 0.1
[    0.151098] No ATAGs?
[    0.151183] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.153565] Serial: AMBA PL011 UART driver
[    0.169356] edma 49000000.edma: TI EDMA DMA engine driver
[    0.173465] vgaarb: loaded
[    0.174696] media: Linux media interface: v0.10
[    0.174757] videodev: Linux video capture interface: v2.00
[    0.174818] pps_core: LinuxPPS API ver. 1 registered
[    0.174827] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.174848] PTP clock support registered
[    0.175510] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.177526] clocksource: Switched to clocksource timer1
[    0.258507] VFS: Disk quotas dquot_6.6.0
[    0.258629] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.259436] AppArmor: AppArmor Filesystem Enabled
[    0.271073] NET: Registered protocol family 2
[    0.271308] IP idents hash table entries: 8192 (order: 4, 65536 bytes)
[    0.272264] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.272302] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.272347] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.272406] TCP: Hash tables configured (established 4096 bind 4096)
[    0.272532] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.272559] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.272772] NET: Registered protocol family 1
[    0.272809] NET: Registered protocol family 44
[    0.273433] Unpacking initramfs...
[    1.029575] random: fast init done
[    1.447260] Freeing initrd memory: 16140K
[    1.447974] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.451580] Initialise system trusted keyrings
[    1.451663] Key type blacklist registered
[    1.452034] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.459119] zbud: loaded
[    5.820308] Key type asymmetric registered
[    5.820335] Asymmetric key parser 'x509' registered
[    5.820432] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    5.820709] io scheduler noop registered
[    5.820723] io scheduler deadline registered
[    5.821002] io scheduler cfq registered (default)
[    5.821013] io scheduler mq-deadline registered
[    5.823905] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    5.835038] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    5.837900] Serial: AMBA driver
[    5.838893] omap_uart 44e09000.serial: no wakeirq for uart0
[    5.839005] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
[    6.519909] console [ttyO0] enabled
[    6.527168] libphy: Fixed MDIO Bus: probed
[    6.532520] mousedev: PS/2 mouse device common for all mice
[    6.540113] omap_rtc 44e3e000.rtc: already running
[    6.545951] omap_rtc 44e3e000.rtc: registered as rtc0
[    6.554589] ledtrig-cpu: registered to indicate activity on CPUs
[    6.563797] NET: Registered protocol family 10
[    6.602345] Segment Routing with IPv6
[    6.606521] mip6: Mobile IPv6
[    6.609717] NET: Registered protocol family 17
[    6.614623] mpls_gso: MPLS GSO support
[    6.618667] ThumbEE CPU extension supported.
[    6.623215] Registering SWP/SWPB emulation handler
[    6.628253] omap_voltage_late_init: Voltage driver support not added
[    6.634904] sr_dev_init: Unknown instance smartreflex0
[    6.640762] SmartReflex Class3 initialized
[    6.646160] registered taskstats version 1
[    6.650484] Loading compiled-in X.509 certificates
[    7.040521] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    7.049860] Loaded X.509 cert 'Debian Secure Boot Signer 2021 - linux: 4b6ef5abca669825178e052c84667ccbc0531f8c'
[    7.060683] zswap: loaded using pool lzo/zbud
[    7.065721] AppArmor: AppArmor sha1 policy hashing enabled
[    7.086128] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    7.093961] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    7.100467] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:07:21 UTC (946685241)
[    7.109519] sr_init: No PMIC hook to init smartreflex
[    7.128717] Freeing unused kernel memory: 2048K
[    7.134039] Run /init as init process
[    7.678698] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    7.687902] omap_hsmmc 48060000.mmc: Got CD GPIO
[    7.733095] omap_rng 48310000.rng: Random Number Generator ver. 20
[    7.739887] random: crng init done
[    7.784006] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
[    7.859771] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
[    7.901341] mmc0: host does not support reading read-only switch, assuming write-enable
[    7.937479] mmc0: new high speed SDXC card at address 5048
[    7.984706] mmcblk0: mmc0:5048 SD64G 58.1 GiB 
[    7.993769] mmc1: new high speed MMC card at address 0001
[    8.017929]  mmcblk0: p1
[    8.021156] mmcblk1: mmc1:0001 MMC04G 3.60 GiB 
[    8.043032] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB
[    8.074420] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB
[    8.105871] mmcblk1rpmb: mmc1:0001 MMC04G partition 3 128 KiB, chardev (242:0)
[    8.164879]  mmcblk1: p1
[    8.218369] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
[    8.293900] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
[    8.345860] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
[    8.376611] usbcore: registered new interface driver usbfs
[    8.410544] usbcore: registered new interface driver hub
[    8.416396] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0
[    8.444963] usbcore: registered new device driver usb
[    8.600792] Unable to handle kernel NULL pointer dereference at virtual address 00000008
[    8.609400] pgd = 19164473
[    8.612275] [00000008] *pgd=00000000
[    8.616035] Internal error: Oops: 5 [#1] SMP ARM
[    8.620844] Modules linked in: musb_dsps(+) musb_hdrc udc_core usbcore phy_am335x phy_generic phy_am335x_control omap_rng rng_core omap_hsmmc musb_am335x leds_gpio
[    8.636088] CPU: 0 PID: 60 Comm: kworker/0:2 Not tainted 4.19.0-18-armmp #1 Debian 4.19.208-1
[    8.644960] Hardware name: Generic AM33XX (Flattened Device Tree)
[    8.651324] Workqueue: events deferred_probe_work_func
[    8.656703] PC is at dsps_musb_init+0x38/0x1cc [musb_dsps]
[    8.662451] LR is at musb_probe+0x1f4/0xda8 [musb_hdrc]
[    8.667889] pc : [<bf164de4>]    lr : [<bf10e8e4>]    psr: a0000013
[    8.674412] sp : de531c78  ip : de531ca8  fp : de531ca4
[    8.679848] r10: de586a00  r9 : c1205dd0  r8 : bf125390
[    8.685285] r7 : 00000000  r6 : de50d040  r5 : de586a10  r4 : de50c040
[    8.692077] r3 : de585410  r2 : bf166710  r1 : 00000200  r0 : de585400
[    8.698873] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    8.706299] Control: 10c5387d  Table: 9e648019  DAC: 00000051
[    8.712280] Process kworker/0:2 (pid: 60, stack limit = 0x9e83b880)
[    8.718805] Stack: (0xde531c78 to 0xde532000)
[    8.723339] 1c60:                                                       00000000 de531c88
[    8.731856] 1c80: de531ca4 de50c040 e125b400 de50d040 bf127240 bf125390 de531d84 de531ca8
[    8.740371] 1ca0: bf10e8e4 bf164db8 40000013 c096661c de531ce4 de531cc0 c096661c c0b13e10
[    8.748886] 1cc0: de531d20 c1205dd0 df96c00c c0df28f0 c0df2084 0000000f de531d14 00000037
[    8.757402] 1ce0: c0966abc c09665d4 00000000 21f35e5f cfa420c0 de586a10 c1205dd0 bf125390
[    8.765917] 1d00: 00000000 bf125390 de531d5c de531d18 c09674fc c0966a74 00000000 de531d28
[    8.774431] 1d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.782949] 1d40: 00000000 21f35e5f de586a10 00000000 de531d74 21f35e5f c0851e1c de586a10
[    8.791467] 1d60: 00000000 bf125390 00000000 bf125390 0000000f 00000000 de531da4 de531d88
[    8.799986] 1d80: c083c070 bf10e6fc c135f424 de586a10 c135f428 00000000 de531ddc de531da8
[    8.808505] 1da0: c08397cc c083c024 00000000 de586a10 de531ddc de586a10 bf125390 00000001
[    8.817022] 1dc0: de586a10 00000001 c1306de8 c0dfd660 de531e14 de531de0 c0839c88 c08395ac
[    8.825541] 1de0: c0968dc8 c083c658 de531e14 de531df8 bf125390 de531e6c 00000001 de586a10
[    8.834057] 1e00: 00000001 c1306de8 de531e34 de531e18 c0839ed0 c0839b20 00000000 c1205dd0
[    8.842573] 1e20: de531e6c c0839e20 de531e64 de531e38 c08372d8 c0839e2c de531e64 de0f816c
[    8.851090] 1e40: cf9f3938 21f35e5f de586a10 c1205dd0 de586a44 c12d2768 de531e9c de531e68
[    8.859608] 1e60: c08394f8 c0837254 c084aa5c de586a10 00000001 21f35e5f de586a10 cf9f3d44
[    8.868127] 1e80: de586a10 c12d29d0 c12d2768 c12d277c de531eac de531ea0 c0839f90 c0839414
[    8.876644] 1ea0: de531ecc de531eb0 c08385d4 c0839f80 cf9f3d44 de586a10 c12d2768 c12d2768
[    8.885161] 1ec0: de531efc de531ed0 c0838b34 c083854c c0838aa0 c12d27a0 de4ad980 df94fcc0
[    8.893678] 1ee0: df952f00 00000000 c12d27a4 00000000 de531f34 de531f00 c036bd54 c0838aac
[    8.902197] 1f00: 00000008 df94fcd8 c1204d00 de4ad980 de4ad994 df94fcc0 00000008 df94fcd8
[    8.910715] 1f20: c1204d00 df94fcc0 de531f74 de531f38 c036cd98 c036bb98 c036cd38 c0d78a2c
[    8.919233] 1f40: c12f2c10 ffffe000 de531f74 de512100 de512500 00000000 de530000 de4ad980
[    8.927751] 1f60: c036cd38 de135e74 de531fac de531f78 c03727ec c036cd44 de51211c de51211c
[    8.936265] 1f80: de531fac de512500 c0372680 00000000 00000000 00000000 00000000 00000000
[    8.944782] 1fa0: 00000000 de531fb0 c03010e8 c037268c 00000000 00000000 00000000 00000000
[    8.953301] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.961820] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    8.970378] [<bf164de4>] (dsps_musb_init [musb_dsps]) from [<bf10e8e4>] (musb_probe+0x1f4/0xda8 [musb_hdrc])
[    8.980634] [<bf10e8e4>] (musb_probe [musb_hdrc]) from [<c083c070>] (platform_drv_probe+0x58/0xa8)
[    8.989975] [<c083c070>] (platform_drv_probe) from [<c08397cc>] (really_probe+0x22c/0x3e0)
[    8.998585] [<c08397cc>] (really_probe) from [<c0839c88>] (driver_probe_device+0x174/0x1cc)
[    9.007283] [<c0839c88>] (driver_probe_device) from [<c0839ed0>] (__device_attach_driver+0xb0/0x114)
[    9.016796] [<c0839ed0>] (__device_attach_driver) from [<c08372d8>] (bus_for_each_drv+0x90/0xd4)
[    9.025944] [<c08372d8>] (bus_for_each_drv) from [<c08394f8>] (__device_attach+0xf0/0x178)
[    9.034555] [<c08394f8>] (__device_attach) from [<c0839f90>] (device_initial_probe+0x1c/0x20)
[    9.043434] [<c0839f90>] (device_initial_probe) from [<c08385d4>] (bus_probe_device+0x94/0x9c)
[    9.052402] [<c08385d4>] (bus_probe_device) from [<c0838b34>] (deferred_probe_work_func+0x94/0xd4)
[    9.061745] [<c0838b34>] (deferred_probe_work_func) from [<c036bd54>] (process_one_work+0x1c8/0x4a4)
[    9.071262] [<c036bd54>] (process_one_work) from [<c036cd98>] (worker_thread+0x60/0x544)
[    9.079696] [<c036cd98>] (worker_thread) from [<c03727ec>] (kthread+0x16c/0x174)
[    9.087400] [<c03727ec>] (kthread) from [<c03010e8>] (ret_from_fork+0x14/0x2c)
[    9.094917] Exception stack(0xde531fb0 to 0xde531ff8)
[    9.100176] 1fa0:                                     00000000 00000000 00000000 00000000
[    9.108693] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    9.117208] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    9.124098] Code: e34b2f16 e5953000 e2430010 e5937054 (e5978008) 
[    9.130494] ---[ end trace 86a2eb625e8d0613 ]---

In contrast to the boot process for stable (bullseye), this one proceeds to show the installer after a few minutes. This is what the installer log looks like at that point:

Code: Select all

[           1- installer  2 shell  3 shell   (4*log)           ][ Jan 01  0:09 ]
Jan  1 00:09:23 kernel: [    9.130494] ---[ end trace 86a2eb625e8d0613 ]---     
Jan  1 00:09:24 entropy-source: haveged not needed: rng detected                
Jan  1 00:09:25 reopen-console: Looking at console ttyO0 from /proc/consoles    
Jan  1 00:09:25 reopen-console:    Adding ttyO0 to possible consoles list       
Jan  1 00:09:25 reopen-console:    ttyO0 is preferred                           
Jan  1 00:09:25 reopen-console: Adding inittab entry for ttyO0                  
Jan  1 00:09:25 reopen-console: Restarting init to start d-i on the console(s) we found                                                                         
Jan  1 00:09:25 init: reloading /etc/inittab                                    
Jan  1 00:09:25 init: starting pid 185, tty '/dev/tty4': '/usr/bin/tail -f /var/log/syslog'                                                                     
Jan  1 00:09:25 init: starting pid 186, tty '/dev/ttyO0': '/sbin/debian-installer'                                                                              
Jan  1 00:09:25 debconf: Setting debconf/language to en                         
Jan  1 00:09:26 main-menu[206]: INFO: Falling back to the package description for brltty-udeb                                                                   
Jan  1 00:09:26 main-menu[206]: INFO: Menu item 'localechooser' selected        
Jan  1 00:09:26 debconf: Setting debconf/language to                            

(Unsure if this is relevant, but here goes...)
Later when trying to find the installation ISO that I have placed on a separate partition of the SD card, the installer fails doing so and running `dmesg` in a shell yields:

Code: Select all

[  350.568578] SCSI subsystem initialized
[  350.582515] usbcore: registered new interface driver usb-storage
[  473.725480] loop: module loaded
[  473.799258] device-mapper: uevent: version 1.0.3
[  473.802184] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[  483.987535] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[  661.174164] mmc0: card 5048 removed
[ 1097.900224] mmc0: card never left busy state
[ 1097.900246] mmc0: error -110 whilst initialising SD card
[ 1113.919323] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[ 1139.622568] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[ 1245.857062] mmc0: card never left busy state
[ 1245.857087] mmc0: error -110 whilst initialising SD card
---

I have previously been able to successfully install Debian on BeagleBone Black using the same approach as I have described here.

---
  • What could be causing the issues above?
  • How do I go about troubleshooting and resolving or working around this?
---

Thank you in advance!

User avatar
argentwolf
Posts: 201
Joined: 2021-09-05 23:21
Has thanked: 185 times
Been thanked: 15 times

Re: Failing to install on a BeagleBone Black (armhf)

#2 Post by argentwolf »

Vanguard Debian, because nothing's worse than doing nothing, whimsically!
32-bit | 2 Duo T5270 @ 1.40GHz x 2 CPU | 3.9GiB RAM | NV86 117MiB GPU | 465.76GiB SSD
64-bit | i7-4790 @ 3.60GHz x 8 CPU | 15.6GiB RAM | NVD9 1.9GiB GPU | 931.51GiB SSD

joelpet
Posts: 6
Joined: 2021-12-03 14:56

Re: Failing to install on a BeagleBone Black (armhf)

#3 Post by joelpet »

Thank you for your response!

Yes, the following "Flasher" image successfully installs Debian GNU/Linux 10 on my device:

Code: Select all

AM3358 Debian 10.3 2020-04-06 4GB eMMC IoT Flasher image for BeagleBone, BeagleBone Black, ... - sha256sum: e339459077b83f6458cb3432494954582aedad897b9f3b62fa390dfdb010a9df
I much rather run upstream Debian, however, and I would prefer to have the current stable (bullseye) version installed right away—even though upgrading after installation would work too.

A few reasons I rather run upstream:
  • Disk space usage is lower after default installation as it doesn't come with―for me―irrelevant packages.
  • The kernel comes from official Debian repos that I trust:

    Code: Select all

    $ apt show linux-image-$(uname -r) | grep APT-Sources
    APT-Sources: http://deb.debian.org/debian bullseye/main armhf Packages
    
    vs.

    Code: Select all

    $ apt show linux-image-$(uname -r) | grep APT-Sources
    APT-Sources: http://repos.rcn-ee.com/debian buster/main armhf Packages
    
  • In general, I don't have to trust and depend on other parties than the Debian Project.
---

My questions remain:
  • What could be causing the issues above?
  • How do I go about troubleshooting and resolving or working around this?

User avatar
argentwolf
Posts: 201
Joined: 2021-09-05 23:21
Has thanked: 185 times
Been thanked: 15 times

Re: Failing to install on a BeagleBone Black (armhf)

#4 Post by argentwolf »

So you'd rather NOT coordinate with the OEM (Beagleboard), developers, and end users because you don't want to trust or depend on other parties? Huh, my bad, I've got nothing! drops mic
Vanguard Debian, because nothing's worse than doing nothing, whimsically!
32-bit | 2 Duo T5270 @ 1.40GHz x 2 CPU | 3.9GiB RAM | NV86 117MiB GPU | 465.76GiB SSD
64-bit | i7-4790 @ 3.60GHz x 8 CPU | 15.6GiB RAM | NVD9 1.9GiB GPU | 931.51GiB SSD

joelpet
Posts: 6
Joined: 2021-12-03 14:56

Re: Failing to install on a BeagleBone Black (armhf)

#5 Post by joelpet »

argentwolf wrote: 2021-12-04 14:04 So you'd rather NOT coordinate with the OEM (Beagleboard), developers, and end users because you don't want to trust or depend on other parties? Huh, my bad, I've got nothing! drops mic
I think that would be an interesting topic to discuss, but in a separate thread. Ideally I would learn something that made me change my mind. In this thread, however, I would like to focus on the problem at hand—that is, the "kernel BUG at drivers/usb/musb/musb_core.c:2158".

Any idea what could be causing the issue? Or pointers on how to debug and fix it?

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Failing to install on a BeagleBone Black (armhf)

#6 Post by sunrat »

joelpet wrote: 2021-12-04 17:08 I would like to focus on the problem at hand—that is, the "kernel BUG at drivers/usb/musb/musb_core.c:2158".
I suspect that Flasher image contains specific drivers for Beaglebone which are either not in Debian OOTB and need to be compiled separately, or are not available at all. This is why these dev board makers often create their own device-specific OS versions.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

joelpet
Posts: 6
Joined: 2021-12-03 14:56

Re: Failing to install on a BeagleBone Black (armhf)

#7 Post by joelpet »

sunrat wrote: 2021-12-04 22:24 I suspect that Flasher image contains specific drivers for Beaglebone which are either not in Debian OOTB and need to be compiled separately, or are not available at all. This is why these dev board makers often create their own device-specific OS versions.
I see. Thank you for that insight!

Let's say it is indeed a problem with a missing driver and such a driver is actually available (in source or binary form). What would it take to fix that? Would I have to build a custom Debian installer SD card image? Or would it be possible to sideload from the pre-built SD card installers somehow?

As previously mentioned, I have been able to use the pre-built upstream installer SD card images before to successfully install Debian on the same hardware, which makes me believe a fix should be within reach.

pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

Re: Failing to install on a BeagleBone Black (armhf)

#8 Post by pcalvert »

I have an idea that might work:

1. Create an extra partition and install the OEM version of Debian on that.
2. Boot into that system and (if necessary), format the first partition that you would normally install Debian on.
3. Mount that partition (if necessary).
4. Use grml-debootstrap to install pure Debian on that first partition.
5. Try to boot into the pure Debian system that you just installed.
6. If successful, delete the OEM version of Debian (or keep it as fallback system).

You can read more about grml-debootstrap here:
https://grml.org/grml-debootstrap/
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

joelpet
Posts: 6
Joined: 2021-12-03 14:56

Re: Failing to install on a BeagleBone Black (armhf)

#9 Post by joelpet »

pcalvert wrote: 2021-12-06 00:28 I have an idea that might work:

1. Create an extra partition and install the OEM version of Debian on that.
2. Boot into that system and (if necessary), format the first partition that you would normally install Debian on.
3. Mount that partition (if necessary).
4. Use grml-debootstrap to install pure Debian on that first partition.
5. Try to boot into the pure Debian system that you just installed.
6. If successful, delete the OEM version of Debian (or keep it as fallback system).

You can read more about grml-debootstrap here:
https://grml.org/grml-debootstrap/
Thanks, that's an interesting idea! Unfortunately, I wasn't able to get it to work on first try:

Code: Select all

$ sudo grml-debootstrap --target /dev/mmcblk1 
 * grml-debootstrap [unknown] - Please recheck configuration before execution:

   Target:          /dev/mmcblk1
   Install grub:    no
   Install efi:     no
   Using release:   bullseye
   Using hostname:  beaglebone
   Using mirror:    http://deb.debian.org/debian
   Using arch:      armhf
   Config files:    /etc/debootstrap

   Important! Continuing will delete all data from /dev/mmcblk1!

 * Is this ok for you? [y/N] y
 * Running mkfs.ext4  on /dev/mmcblk1
mke2fs 1.44.5 (15-Dec-2018)
/dev/mmcblk1 contains a ext4 file system
	last mounted on /mnt/debootstrap.3373 on Mon Dec  6 21:41:01 2021
Proceed anyway? (y,N) y
Discarding device blocks: done                            
Creating filesystem with 944128 4k blocks and 236176 inodes
Filesystem UUID: 41e794c4-908d-407c-b9b7-5d61d775c30a
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

 * No underlying block device for /dev/mmcblk1 identified, skipping blockdev --rereadpt.
 * Disabling automatic filesystem check on /dev/mmcblk1 via tune2fs
tune2fs 1.44.5 (15-Dec-2018)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
 * Mounting /dev/mmcblk1 to /mnt/debootstrap.22105
 * Identified UUID 41e794c4-908d-407c-b9b7-5d61d775c30a for /dev/mmcblk1
 * Running debootstrap  for release bullseye (armhf) using http://deb.debian.org/debian
 * Executing: debootstrap --arch armhf  bullseye /mnt/debootstrap.22105 http://deb.debian.org/debian
I: Target architecture can be executed
I: Retrieving InRelease 
I: Checking Release signature
I: Valid Release signature (key id A4285295FC7B1A81600062A9605C66F00D6C9793)
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://deb.debian.org/debian...
I: Retrieving libacl1 2.2.53-10
I: Validating libacl1 2.2.53-10
I: Retrieving adduser 3.118
I: Validating adduser 3.118
I: Retrieving libapparmor1 2.13.6-10
I: Validating libapparmor1 2.13.6-10
I: Retrieving apt 2.2.4
I: Validating apt 2.2.4
I: Retrieving apt-utils 2.2.4
I: Validating apt-utils 2.2.4
I: Retrieving libapt-pkg6.0 2.2.4
I: Validating libapt-pkg6.0 2.2.4
I: Retrieving libargon2-1 0~20171227-0.2
I: Validating libargon2-1 0~20171227-0.2
I: Retrieving libattr1 1:2.4.48-6
I: Validating libattr1 1:2.4.48-6
I: Retrieving libaudit-common 1:3.0-2
I: Validating libaudit-common 1:3.0-2
I: Retrieving libaudit1 1:3.0-2
I: Validating libaudit1 1:3.0-2
I: Retrieving base-files 11.1+deb11u1
I: Validating base-files 11.1+deb11u1
I: Retrieving base-passwd 3.5.51
I: Validating base-passwd 3.5.51
I: Retrieving bash 5.1-2+b3
I: Validating bash 5.1-2+b3
I: Retrieving libdns-export1110 1:9.11.19+dfsg-2.1
I: Validating libdns-export1110 1:9.11.19+dfsg-2.1
I: Retrieving libisc-export1105 1:9.11.19+dfsg-2.1
I: Validating libisc-export1105 1:9.11.19+dfsg-2.1
I: Retrieving libbz2-1.0 1.0.8-4
I: Validating libbz2-1.0 1.0.8-4
I: Retrieving libdebconfclient0 0.260
I: Validating libdebconfclient0 0.260
I: Retrieving coreutils 8.32-4
I: Validating coreutils 8.32-4
I: Retrieving cpio 2.13+dfsg-4
I: Validating cpio 2.13+dfsg-4
I: Retrieving cron 3.0pl1-137
I: Validating cron 3.0pl1-137
I: Retrieving libcryptsetup12 2:2.3.5-1
I: Validating libcryptsetup12 2:2.3.5-1
I: Retrieving dash 0.5.11+git20200708+dd9ef66-5
I: Validating dash 0.5.11+git20200708+dd9ef66-5
I: Retrieving libdb5.3 5.3.28+dfsg1-0.8
I: Validating libdb5.3 5.3.28+dfsg1-0.8
I: Retrieving debconf 1.5.77
I: Validating debconf 1.5.77
I: Retrieving debconf-i18n 1.5.77
I: Validating debconf-i18n 1.5.77
I: Retrieving debian-archive-keyring 2021.1.1
I: Validating debian-archive-keyring 2021.1.1
I: Retrieving debianutils 4.11.2
I: Validating debianutils 4.11.2
I: Retrieving diffutils 1:3.7-5
I: Validating diffutils 1:3.7-5
I: Retrieving dmidecode 3.3-2
I: Validating dmidecode 3.3-2
I: Retrieving dpkg 1.20.9
I: Validating dpkg 1.20.9
I: Retrieving e2fsprogs 1.46.2-2
I: Validating e2fsprogs 1.46.2-2
I: Retrieving libcom-err2 1.46.2-2
I: Validating libcom-err2 1.46.2-2
I: Retrieving libext2fs2 1.46.2-2
I: Validating libext2fs2 1.46.2-2
I: Retrieving libss2 1.46.2-2
I: Validating libss2 1.46.2-2
I: Retrieving logsave 1.46.2-2
I: Validating logsave 1.46.2-2
I: Retrieving libelf1 0.183-1
I: Validating libelf1 0.183-1
I: Retrieving findutils 4.8.0-1
I: Validating findutils 4.8.0-1
I: Retrieving gcc-10-base 10.2.1-6
I: Validating gcc-10-base 10.2.1-6
I: Retrieving libgcc-s1 10.2.1-6
I: Validating libgcc-s1 10.2.1-6
I: Retrieving libstdc++6 10.2.1-6
I: Validating libstdc++6 10.2.1-6
I: Retrieving gcc-9-base 9.3.0-22
I: Validating gcc-9-base 9.3.0-22
I: Retrieving libc-bin 2.31-13+deb11u2
I: Validating libc-bin 2.31-13+deb11u2
I: Retrieving libc6 2.31-13+deb11u2
I: Validating libc6 2.31-13+deb11u2
I: Retrieving libgmp10 2:6.2.1+dfsg-1
I: Validating libgmp10 2:6.2.1+dfsg-1
I: Retrieving gpgv 2.2.27-2
I: Validating gpgv 2.2.27-2
I: Retrieving libgnutls30 3.7.1-5
I: Validating libgnutls30 3.7.1-5
I: Retrieving grep 3.6-1
I: Validating grep 3.6-1
I: Retrieving gzip 1.10-4
I: Validating gzip 1.10-4
I: Retrieving hostname 3.23
I: Validating hostname 3.23
I: Retrieving ifupdown 0.8.36
I: Validating ifupdown 0.8.36
I: Retrieving init 1.60
I: Validating init 1.60
I: Retrieving init-system-helpers 1.60
I: Validating init-system-helpers 1.60
I: Retrieving iproute2 5.10.0-4
I: Validating iproute2 5.10.0-4
I: Retrieving libip4tc2 1.8.7-1
I: Validating libip4tc2 1.8.7-1
I: Retrieving libxtables12 1.8.7-1
I: Validating libxtables12 1.8.7-1
I: Retrieving iputils-ping 3:20210202-1
I: Validating iputils-ping 3:20210202-1
I: Retrieving isc-dhcp-client 4.4.1-2.3
I: Validating isc-dhcp-client 4.4.1-2.3
I: Retrieving isc-dhcp-common 4.4.1-2.3
I: Validating isc-dhcp-common 4.4.1-2.3
I: Retrieving libjansson4 2.13.1-1.1
I: Validating libjansson4 2.13.1-1.1
I: Retrieving libjson-c5 0.15-2
I: Validating libjson-c5 0.15-2
I: Retrieving libkeyutils1 1.6.1-2
I: Validating libkeyutils1 1.6.1-2
I: Retrieving kmod 28-1
I: Validating kmod 28-1
I: Retrieving libkmod2 28-1
I: Validating libkmod2 28-1
I: Retrieving libgssapi-krb5-2 1.18.3-6+deb11u1
I: Validating libgssapi-krb5-2 1.18.3-6+deb11u1
I: Retrieving libk5crypto3 1.18.3-6+deb11u1
I: Validating libk5crypto3 1.18.3-6+deb11u1
I: Retrieving libkrb5-3 1.18.3-6+deb11u1
I: Validating libkrb5-3 1.18.3-6+deb11u1
I: Retrieving libkrb5support0 1.18.3-6+deb11u1
I: Validating libkrb5support0 1.18.3-6+deb11u1
I: Retrieving less 551-2
I: Validating less 551-2
I: Retrieving libbpf0 1:0.3-2
I: Validating libbpf0 1:0.3-2
I: Retrieving libbsd0 0.11.3-1
I: Validating libbsd0 0.11.3-1
I: Retrieving libcap-ng0 0.7.9-2.2+b1
I: Validating libcap-ng0 0.7.9-2.2+b1
I: Retrieving libcap2 1:2.44-1
I: Validating libcap2 1:2.44-1
I: Retrieving libcap2-bin 1:2.44-1
I: Validating libcap2-bin 1:2.44-1
I: Retrieving libedit2 3.1-20191231-2+b1
I: Validating libedit2 3.1-20191231-2+b1
I: Retrieving libestr0 0.1.10-2.1+b1
I: Validating libestr0 0.1.10-2.1+b1
I: Retrieving libfastjson4 0.99.9-1
I: Validating libfastjson4 0.99.9-1
I: Retrieving libffi7 3.3-6
I: Validating libffi7 3.3-6
I: Retrieving libgcrypt20 1.8.7-6
I: Validating libgcrypt20 1.8.7-6
I: Retrieving libgpg-error0 1.38-2
I: Validating libgpg-error0 1.38-2
I: Retrieving libidn2-0 2.3.0-5
I: Validating libidn2-0 2.3.0-5
I: Retrieving liblocale-gettext-perl 1.07-4+b1
I: Validating liblocale-gettext-perl 1.07-4+b1
I: Retrieving liblognorm5 2.0.5-1.1
I: Validating liblognorm5 2.0.5-1.1
I: Retrieving libmd0 1.0.3-3
I: Validating libmd0 1.0.3-3
I: Retrieving libmnl0 1.0.4-3
I: Validating libmnl0 1.0.4-3
I: Retrieving libnftnl11 1.1.9-1
I: Validating libnftnl11 1.1.9-1
I: Retrieving libnsl2 1.3.0-2
I: Validating libnsl2 1.3.0-2
I: Retrieving libseccomp2 2.5.1-1
I: Validating libseccomp2 2.5.1-1
I: Retrieving libselinux1 3.1-3
I: Validating libselinux1 3.1-3
I: Retrieving libsemanage-common 3.1-1
I: Validating libsemanage-common 3.1-1
I: Retrieving libsemanage1 3.1-1+b2
I: Validating libsemanage1 3.1-1+b2
I: Retrieving libsepol1 3.1-1
I: Validating libsepol1 3.1-1
I: Retrieving libtasn1-6 4.16.0-2
I: Validating libtasn1-6 4.16.0-2
I: Retrieving libtext-charwidth-perl 0.04-10+b1
I: Validating libtext-charwidth-perl 0.04-10+b1
I: Retrieving libtext-iconv-perl 1.7-7+b1
I: Validating libtext-iconv-perl 1.7-7+b1
I: Retrieving libtext-wrapi18n-perl 0.06-9
I: Validating libtext-wrapi18n-perl 0.06-9
I: Retrieving libtirpc-common 1.3.1-1
I: Validating libtirpc-common 1.3.1-1
I: Retrieving libtirpc3 1.3.1-1
I: Validating libtirpc3 1.3.1-1
I: Retrieving libunistring2 0.9.10-4
I: Validating libunistring2 0.9.10-4
I: Retrieving libcrypt1 1:4.4.18-4
I: Validating libcrypt1 1:4.4.18-4
I: Retrieving libzstd1 1.4.8+dfsg-2.1
I: Validating libzstd1 1.4.8+dfsg-2.1
I: Retrieving logrotate 3.18.0-2
I: Validating logrotate 3.18.0-2
I: Retrieving lsb-base 11.1.0
I: Validating lsb-base 11.1.0
I: Retrieving dmsetup 2:1.02.175-2.1
I: Validating dmsetup 2:1.02.175-2.1
I: Retrieving libdevmapper1.02.1 2:1.02.175-2.1
I: Validating libdevmapper1.02.1 2:1.02.175-2.1
I: Retrieving liblz4-1 1.9.3-2
I: Validating liblz4-1 1.9.3-2
I: Retrieving mawk 1.3.4.20200120-2
I: Validating mawk 1.3.4.20200120-2
I: Retrieving nano 5.4-2
I: Validating nano 5.4-2
I: Retrieving libncurses6 6.2+20201114-2
I: Validating libncurses6 6.2+20201114-2
I: Retrieving libncursesw6 6.2+20201114-2
I: Validating libncursesw6 6.2+20201114-2
I: Retrieving libtinfo6 6.2+20201114-2
I: Validating libtinfo6 6.2+20201114-2
I: Retrieving ncurses-base 6.2+20201114-2
I: Validating ncurses-base 6.2+20201114-2
I: Retrieving ncurses-bin 6.2+20201114-2
I: Validating ncurses-bin 6.2+20201114-2
I: Retrieving netbase 6.3
I: Validating netbase 6.3
I: Retrieving libhogweed6 3.7.3-1
I: Validating libhogweed6 3.7.3-1
I: Retrieving libnettle8 3.7.3-1
I: Validating libnettle8 3.7.3-1
I: Retrieving libnewt0.52 0.52.21-4+b3
I: Validating libnewt0.52 0.52.21-4+b3
I: Retrieving whiptail 0.52.21-4+b3
I: Validating whiptail 0.52.21-4+b3
I: Retrieving libnftables1 0.9.8-3.1
I: Validating libnftables1 0.9.8-3.1
I: Retrieving nftables 0.9.8-3.1
I: Validating nftables 0.9.8-3.1
I: Retrieving libssl1.1 1.1.1k-1+deb11u1
I: Validating libssl1.1 1.1.1k-1+deb11u1
I: Retrieving libp11-kit0 0.23.22-1
I: Validating libp11-kit0 0.23.22-1
I: Retrieving libpam-modules 1.4.0-9+deb11u1
I: Validating libpam-modules 1.4.0-9+deb11u1
I: Retrieving libpam-modules-bin 1.4.0-9+deb11u1
I: Validating libpam-modules-bin 1.4.0-9+deb11u1
I: Retrieving libpam-runtime 1.4.0-9+deb11u1
I: Validating libpam-runtime 1.4.0-9+deb11u1
I: Retrieving libpam0g 1.4.0-9+deb11u1
I: Validating libpam0g 1.4.0-9+deb11u1
I: Retrieving libpcre2-8-0 10.36-2
I: Validating libpcre2-8-0 10.36-2
I: Retrieving libpcre3 2:8.39-13
I: Validating libpcre3 2:8.39-13
I: Retrieving perl-base 5.32.1-4+deb11u2
I: Validating perl-base 5.32.1-4+deb11u2
I: Retrieving libpopt0 1.18-2
I: Validating libpopt0 1.18-2
I: Retrieving libprocps8 2:3.3.17-5
I: Validating libprocps8 2:3.3.17-5
I: Retrieving procps 2:3.3.17-5
I: Validating procps 2:3.3.17-5
I: Retrieving libreadline8 8.1-1
I: Validating libreadline8 8.1-1
I: Retrieving readline-common 8.1-1
I: Validating readline-common 8.1-1
I: Retrieving rsyslog 8.2102.0-2
I: Validating rsyslog 8.2102.0-2
I: Retrieving sed 4.7-1
I: Validating sed 4.7-1
I: Retrieving sensible-utils 0.0.14
I: Validating sensible-utils 0.0.14
I: Retrieving login 1:4.8.1-1
I: Validating login 1:4.8.1-1
I: Retrieving passwd 1:4.8.1-1
I: Validating passwd 1:4.8.1-1
I: Retrieving libslang2 2.3.2-5
I: Validating libslang2 2.3.2-5
I: Retrieving libsystemd0 247.3-6
I: Validating libsystemd0 247.3-6
I: Retrieving libudev1 247.3-6
I: Validating libudev1 247.3-6
I: Retrieving systemd 247.3-6
I: Validating systemd 247.3-6
I: Retrieving systemd-sysv 247.3-6
I: Validating systemd-sysv 247.3-6
I: Retrieving systemd-timesyncd 247.3-6
I: Validating systemd-timesyncd 247.3-6
I: Retrieving udev 247.3-6
I: Validating udev 247.3-6
I: Retrieving sysvinit-utils 2.96-7
I: Validating sysvinit-utils 2.96-7
I: Retrieving tar 1.34+dfsg-1
I: Validating tar 1.34+dfsg-1
I: Retrieving tasksel 3.68
I: Validating tasksel 3.68
I: Retrieving tasksel-data 3.68
I: Validating tasksel-data 3.68
I: Retrieving tzdata 2021a-1+deb11u1
I: Validating tzdata 2021a-1+deb11u1
I: Retrieving bsdutils 1:2.36.1-8
I: Validating bsdutils 1:2.36.1-8
I: Retrieving fdisk 2.36.1-8
I: Validating fdisk 2.36.1-8
I: Retrieving libblkid1 2.36.1-8
I: Validating libblkid1 2.36.1-8
I: Retrieving libfdisk1 2.36.1-8
I: Validating libfdisk1 2.36.1-8
I: Retrieving libmount1 2.36.1-8
I: Validating libmount1 2.36.1-8
I: Retrieving libsmartcols1 2.36.1-8
I: Validating libsmartcols1 2.36.1-8
I: Retrieving libuuid1 2.36.1-8
I: Validating libuuid1 2.36.1-8
I: Retrieving mount 2.36.1-8
I: Validating mount 2.36.1-8
I: Retrieving util-linux 2.36.1-8
I: Validating util-linux 2.36.1-8
I: Retrieving vim-common 2:8.2.2434-3
I: Validating vim-common 2:8.2.2434-3
I: Retrieving vim-tiny 2:8.2.2434-3
I: Validating vim-tiny 2:8.2.2434-3
I: Retrieving xxd 2:8.2.2434-3
I: Validating xxd 2:8.2.2434-3
I: Retrieving libxxhash0 0.8.0-2
I: Validating libxxhash0 0.8.0-2
I: Retrieving liblzma5 5.2.5-2
I: Validating liblzma5 5.2.5-2
I: Retrieving zlib1g 1:1.2.11.dfsg-2
I: Validating zlib1g 1:1.2.11.dfsg-2
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting libacl1...
I: Extracting adduser...
I: Extracting apt...
I: Extracting libapt-pkg6.0...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting libdebconfclient0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb5.3...
I: Extracting debconf...
I: Extracting debian-archive-keyring...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fsprogs...
I: Extracting libcom-err2...
I: Extracting libext2fs2...
I: Extracting libss2...
I: Extracting logsave...
I: Extracting findutils...
I: Extracting gcc-10-base...
I: Extracting libgcc-s1...
I: Extracting libstdc++6...
I: Extracting gcc-9-base...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting libgmp10...
I: Extracting gpgv...
I: Extracting libgnutls30...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init-system-helpers...
I: Extracting libkeyutils1...
I: Extracting libgssapi-krb5-2...
I: Extracting libk5crypto3...
I: Extracting libkrb5-3...
I: Extracting libkrb5support0...
I: Extracting libcap-ng0...
I: Extracting libffi7...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting libidn2-0...
I: Extracting libnsl2...
I: Extracting libseccomp2...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libtasn1-6...
I: Extracting libtirpc-common...
I: Extracting libtirpc3...
I: Extracting libunistring2...
I: Extracting libcrypt1...
I: Extracting libzstd1...
I: Extracting lsb-base...
I: Extracting liblz4-1...
I: Extracting mawk...
I: Extracting libtinfo6...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libhogweed6...
I: Extracting libnettle8...
I: Extracting libssl1.1...
I: Extracting libp11-kit0...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre2-8-0...
I: Extracting libpcre3...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting login...
I: Extracting passwd...
I: Extracting libsystemd0...
I: Extracting libudev1...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting libxxhash0...
I: Extracting liblzma5...
I: Extracting zlib1g...
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking libacl1:armhf...
I: Unpacking adduser...
I: Unpacking apt...
I: Unpacking libapt-pkg6.0:armhf...
I: Unpacking libattr1:armhf...
I: Unpacking libaudit-common...
I: Unpacking libaudit1:armhf...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking libbz2-1.0:armhf...
I: Unpacking libdebconfclient0:armhf...
I: Unpacking coreutils...
I: Unpacking dash...
I: Unpacking libdb5.3:armhf...
I: Unpacking debconf...
I: Unpacking debian-archive-keyring...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fsprogs...
I: Unpacking libcom-err2:armhf...
I: Unpacking libext2fs2:armhf...
I: Unpacking libss2:armhf...
I: Unpacking logsave...
I: Unpacking findutils...
I: Unpacking gcc-10-base:armhf...
I: Unpacking libgcc-s1:armhf...
I: Unpacking libstdc++6:armhf...
I: Unpacking gcc-9-base:armhf...
I: Unpacking libc-bin...
I: Unpacking libc6:armhf...
I: Unpacking libgmp10:armhf...
I: Unpacking gpgv...
I: Unpacking libgnutls30:armhf...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking init-system-helpers...
I: Unpacking libkeyutils1:armhf...
I: Unpacking libgssapi-krb5-2:armhf...
I: Unpacking libk5crypto3:armhf...
I: Unpacking libkrb5-3:armhf...
I: Unpacking libkrb5support0:armhf...
I: Unpacking libcap-ng0:armhf...
I: Unpacking libffi7:armhf...
I: Unpacking libgcrypt20:armhf...
I: Unpacking libgpg-error0:armhf...
I: Unpacking libidn2-0:armhf...
I: Unpacking libnsl2:armhf...
I: Unpacking libseccomp2:armhf...
I: Unpacking libselinux1:armhf...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage1:armhf...
I: Unpacking libsepol1:armhf...
I: Unpacking libtasn1-6:armhf...
I: Unpacking libtirpc-common...
I: Unpacking libtirpc3:armhf...
I: Unpacking libunistring2:armhf...
I: Unpacking libcrypt1:armhf...
I: Unpacking libzstd1:armhf...
I: Unpacking lsb-base...
I: Unpacking liblz4-1:armhf...
I: Unpacking mawk...
I: Unpacking libtinfo6:armhf...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking libhogweed6:armhf...
I: Unpacking libnettle8:armhf...
I: Unpacking libssl1.1:armhf...
I: Unpacking libp11-kit0:armhf...
I: Unpacking libpam-modules:armhf...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:armhf...
I: Unpacking libpcre2-8-0:armhf...
I: Unpacking libpcre3:armhf...
I: Unpacking perl-base...
I: Unpacking sed...
I: Unpacking login...
I: Unpacking passwd...
I: Unpacking libsystemd0:armhf...
I: Unpacking libudev1:armhf...
I: Unpacking sysvinit-utils...
I: Unpacking tar...
I: Unpacking tzdata...
I: Unpacking bsdutils...
I: Unpacking libblkid1:armhf...
I: Unpacking libmount1:armhf...
I: Unpacking libsmartcols1:armhf...
I: Unpacking libuuid1:armhf...
I: Unpacking mount...
I: Unpacking util-linux...
I: Unpacking libxxhash0:armhf...
I: Unpacking liblzma5:armhf...
I: Unpacking zlib1g:armhf...
I: Configuring required packages...
I: Configuring lsb-base...
I: Configuring libtirpc-common...
I: Configuring debian-archive-keyring...
I: Configuring libaudit-common...
I: Configuring libsemanage-common...
I: Configuring gcc-10-base:armhf...
I: Configuring ncurses-base...
I: Configuring gcc-9-base:armhf...
I: Configuring libcrypt1:armhf...
I: Configuring libgcc-s1:armhf...
I: Configuring libc6:armhf...
I: Configuring libudev1:armhf...
I: Configuring libsepol1:armhf...
I: Configuring libxxhash0:armhf...
I: Configuring libattr1:armhf...
I: Configuring sysvinit-utils...
I: Configuring libtasn1-6:armhf...
I: Configuring debianutils...
I: Configuring mawk...
I: Configuring libdebconfclient0:armhf...
I: Configuring base-files...
I: Configuring libbz2-1.0:armhf...
I: Configuring base-passwd...
I: Configuring libdb5.3:armhf...
I: Configuring libblkid1:armhf...
I: Configuring libstdc++6:armhf...
I: Configuring libtinfo6:armhf...
I: Configuring bash...
I: Configuring libzstd1:armhf...
I: Configuring libkeyutils1:armhf...
I: Configuring liblzma5:armhf...
I: Configuring libgpg-error0:armhf...
I: Configuring liblz4-1:armhf...
I: Configuring libc-bin...
I: Configuring ncurses-bin...
I: Configuring libffi7:armhf...
I: Configuring libacl1:armhf...
I: Configuring libunistring2:armhf...
I: Configuring libsmartcols1:armhf...
I: Configuring libgcrypt20:armhf...
I: Configuring zlib1g:armhf...
I: Configuring libidn2-0:armhf...
I: Configuring libcom-err2:armhf...
I: Configuring diffutils...
I: Configuring libseccomp2:armhf...
I: Configuring libsystemd0:armhf...
I: Configuring libkrb5support0:armhf...
I: Configuring hostname...
I: Configuring libpcre3:armhf...
I: Configuring libcap-ng0:armhf...
I: Configuring libext2fs2:armhf...
I: Configuring libnettle8:armhf...
I: Configuring libapt-pkg6.0:armhf...
I: Configuring libgmp10:armhf...
I: Configuring libp11-kit0:armhf...
I: Configuring libaudit1:armhf...
I: Configuring libuuid1:armhf...
I: Configuring libss2:armhf...
I: Configuring libpcre2-8-0:armhf...
I: Configuring libk5crypto3:armhf...
I: Configuring logsave...
I: Configuring gpgv...
I: Configuring libhogweed6:armhf...
I: Configuring bsdutils...
I: Configuring e2fsprogs...
I: Configuring libselinux1:armhf...
I: Configuring libgnutls30:armhf...
I: Configuring sed...
I: Configuring findutils...
I: Configuring libmount1:armhf...
I: Configuring libsemanage1:armhf...
I: Configuring tar...
I: Configuring coreutils...
I: Configuring dpkg...
I: Configuring grep...
I: Configuring perl-base...
I: Configuring init-system-helpers...
I: Configuring gzip...
I: Configuring debconf...
I: Configuring tzdata...
I: Configuring libpam0g:armhf...
I: Configuring dash...
I: Configuring libssl1.1:armhf...
I: Configuring libpam-modules-bin...
I: Configuring libkrb5-3:armhf...
I: Configuring libgssapi-krb5-2:armhf...
I: Configuring libtirpc3:armhf...
I: Configuring libnsl2:armhf...
I: Configuring libpam-modules:armhf...
I: Configuring passwd...
I: Configuring libpam-runtime...
I: Configuring login...
I: Configuring adduser...
I: Configuring apt...
I: Configuring util-linux...
I: Configuring mount...
I: Configuring libc-bin...
I: Unpacking the base system...
I: Unpacking apt-utils...
I: Unpacking libdns-export1110...
I: Unpacking libisc-export1105:armhf...
I: Unpacking cpio...
I: Unpacking cron...
I: Unpacking debconf-i18n...
I: Unpacking dmidecode...
I: Unpacking libelf1:armhf...
I: Unpacking ifupdown...
I: Unpacking init...
I: Unpacking iproute2...
I: Unpacking libxtables12:armhf...
I: Unpacking iputils-ping...
I: Unpacking isc-dhcp-client...
I: Unpacking isc-dhcp-common...
I: Unpacking libjansson4:armhf...
I: Unpacking kmod...
I: Unpacking less...
I: Unpacking libbpf0:armhf...
I: Unpacking libbsd0:armhf...
I: Unpacking libcap2-bin...
I: Unpacking libedit2:armhf...
I: Unpacking libestr0:armhf...
I: Unpacking libfastjson4:armhf...
I: Unpacking liblocale-gettext-perl...
I: Unpacking liblognorm5:armhf...
I: Unpacking libmd0:armhf...
I: Unpacking libmnl0:armhf...
I: Unpacking libnftnl11:armhf...
I: Unpacking libtext-charwidth-perl...
I: Unpacking libtext-iconv-perl...
I: Unpacking libtext-wrapi18n-perl...
I: Unpacking logrotate...
I: Unpacking nano...
I: Unpacking libncurses6:armhf...
I: Unpacking libncursesw6:armhf...
I: Unpacking netbase...
I: Unpacking libnewt0.52:armhf...
I: Unpacking whiptail...
I: Unpacking libnftables1:armhf...
I: Unpacking nftables...
I: Unpacking libpopt0:armhf...
I: Unpacking libprocps8:armhf...
I: Unpacking procps...
I: Unpacking libreadline8:armhf...
I: Unpacking readline-common...
I: Unpacking rsyslog...
I: Unpacking sensible-utils...
I: Unpacking libslang2:armhf...
I: Unpacking udev...
I: Unpacking tasksel...
I: Unpacking tasksel-data...
I: Unpacking fdisk...
I: Unpacking libfdisk1:armhf...
I: Unpacking vim-common...
I: Unpacking vim-tiny...
I: Unpacking xxd...
I: Configuring the base system...
I: Configuring cpio...
I: Configuring libtext-iconv-perl...
I: Configuring libtext-charwidth-perl...
I: Configuring apt-utils...
I: Configuring init...
I: Configuring libestr0:armhf...
I: Configuring libfastjson4:armhf...
I: Configuring less...
I: Configuring kmod...
I: Configuring libtext-wrapi18n-perl...
I: Configuring xxd...
I: Configuring libjansson4:armhf...
I: Configuring libcap2-bin...
I: Configuring libisc-export1105:armhf...
I: Configuring vim-common...
I: Configuring libslang2:armhf...
I: Configuring libncurses6:armhf...
I: Configuring libmnl0:armhf...
I: Configuring udev...
I: Configuring libncursesw6:armhf...
I: Configuring libxtables12:armhf...
I: Configuring libfdisk1:armhf...
I: Configuring liblognorm5:armhf...
I: Configuring nano...
I: Configuring libmd0:armhf...
I: Configuring sensible-utils...
I: Configuring netbase...
I: Configuring isc-dhcp-common...
I: Configuring dmidecode...
I: Configuring libbsd0:armhf...
I: Configuring libelf1:armhf...
I: Configuring iputils-ping...
I: Configuring readline-common...
I: Configuring liblocale-gettext-perl...
I: Configuring libprocps8:armhf...
I: Configuring libpopt0:armhf...
I: Configuring logrotate...
I: Configuring libnewt0.52:armhf...
I: Configuring libedit2:armhf...
I: Configuring libreadline8:armhf...
I: Configuring cron...
I: Configuring rsyslog...
I: Configuring libdns-export1110...
I: Configuring debconf-i18n...
I: Configuring libnftnl11:armhf...
I: Configuring vim-tiny...
I: Configuring fdisk...
I: Configuring whiptail...
I: Configuring procps...
I: Configuring libbpf0:armhf...
I: Configuring libnftables1:armhf...
I: Configuring nftables...
I: Configuring iproute2...
I: Configuring isc-dhcp-client...
I: Configuring ifupdown...
I: Configuring tasksel-data...
I: Configuring tasksel...
I: Configuring libc-bin...
I: Base system installed successfully.
 * Preparing chroot system
 * Copying /etc/network/interfaces from host to target system
 * Setting up bind-mount /run/udev
 * Executing chroot-script now
   Executing stage chrootmirror
Using repository components main
Adjusting sources.list for mirror (http://deb.debian.org/debian).
Adding security.debian.org/debian-security to sources.list.
   Executing stage grmlrepos
   Executing stage backportrepos
   Executing stage kernelimg_conf
Setting up /etc/kernel-img.conf
   Executing stage kernel
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:3 http://deb.debian.org/debian bullseye/main Translation-en [6241 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main armhf Packages [94.3 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main Translation-en [60.5 kB]
Fetched 6440 kB in 17s (379 kB/s)                                              
Reading package lists... Done
Only i386 and amd64 are currently supported
Warning: Could not find a kernel for your system. Your system won't be able to boot itself!
   Executing stage packages
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Package grub-pc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  grub2-common grub-common

E: Package 'grub-pc' has no installation candidate
 -> Failed (rc=1)
 * Removing chroot-script again
 * Unmounting bind-mount /run/udev
 * Unmount /mnt/debootstrap.22105
umount: /mnt/debootstrap.22105: target is busy.
 -> Failed (rc=32)
 * Removing /var/cache/grml-debootstrap/variables_mmcblk1
 * Removing /var/cache/grml-debootstrap/stages_mmcblk1
 * Unmounting /mnt/debootstrap.22105
Removing stages directory /var/cache/grml-debootstrap/stages_mmcblk1: done
 * Removing directory /mnt/debootstrap.22105
 * Notice: remove /var/cache/grml-debootstrap/stages_mmcblk1/umount_chroot to reexecute the stage
Looks like the problem might be that "Only i386 and amd64 are currently supported".

For the record, I used one of the "Debian console images via microSD card (without flashing the eMMC)" from https://beagleboard.org/latest-images to be able to head straight for step 4.

The search for a solution or workaround continues.

pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

Re: Failing to install on a BeagleBone Black (armhf)

#10 Post by pcalvert »

That's unfortunate. I suggested using grml-debootstrap because, if it had worked, it would have been the simplest and easiest way to do this. Fortunately, you can use plain debootstrap instead. However, it is more work and will require you to carefully study some documentation.

Suggested reading:

https://wiki.debian.org/Debootstrap
https://www.linuxquestions.org/question ... 175465295/
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

joelpet
Posts: 6
Joined: 2021-12-03 14:56

Re: Failing to install on a BeagleBone Black (armhf)

#11 Post by joelpet »

pcalvert wrote: 2021-12-07 07:17 That's unfortunate. I suggested using grml-debootstrap because, if it had worked, it would have been the simplest and easiest way to do this. Fortunately, you can use plain debootstrap instead. However, it is more work and will require you to carefully study some documentation.

Suggested reading:

https://wiki.debian.org/Debootstrap
https://www.linuxquestions.org/question ... 175465295/
Thank you for the suggestion. It worked well. Here is what I did:

Flash Arch Linux ARM onto SD card and boot the BeagleBone from it
https://archlinuxarm.org/platforms/armv ... bone-black

Install debootstrap and some utilities on SD card Arch Linux ARM system
- arch-install-scripts (for genfstab)
- dpkg (because debootstrap said it wanted it)
- linux-util (for mkswap)
- rsync (copy files over the network)
- sudo (for convenience)
- etc.

Copy fdisk script from another BeagleBone Black with a functioning Debian stable installation
Then run it on the target device, resulting in the following:

Code: Select all

label: dos
label-id: 0x16bfa0ef
device: /dev/mmcblk1
unit: sectors
sector-size: 512

/dev/mmcblk1p1 : start=        2048, size=      997376, type=83, bootable
/dev/mmcblk1p2 : start=      999424, size=     5572608, type=83
/dev/mmcblk1p3 : start=     6574078, size=      976898, type=5
/dev/mmcblk1p5 : start=     6574080, size=      976896, type=82
NOTE: Be wary of trailing white-space when providing the script file name.

Create file systems and swap partition according to mount on the functioning installation

Code: Select all

sudo mkfs.ext4 /dev/mmcblk1p2
sudo mkfs.ext2 /dev/mmcblk1p1
sudo mkswap /dev/mmcblk1p5
Flash MLO and u-boot
http://ftp.se.debian.org/debian/dists/s ... BoneBlack/

Code: Select all

# Based on the instructions available at https://archlinuxarm.org/platforms/armv7/ti/beaglebone-black
sudo dd if=MLO of=/dev/mmcblk1 count=1 seek=1 conv=notrunc bs=128k
sudo dd if=u-boot.img of=/dev/mmcblk1 count=2 seek=1 conv=notrunc bs=384k
Mount the internal SD card

Code: Select all

sudo mount /dev/mmcblk1p2 /mnt
Download and install Debian Archive GPG key
https://ftp-master.debian.org/keys.html

Code: Select all

curl -O https://ftp-master.debian.org/keys/archive-key-11.asc
gpg --dearmor archive-key-11.asc
sudo mkdir /usr/share/keyrings
sudo cp archive-key-11.asc.gpg /usr/share/keyrings/debian-archive-keyring.gpg
Run debootstrap

Code: Select all

sudo debootstrap --arch=armhf stable /mnt http://deb.debian.org/debian/
Mont /boot in chroot

Code: Select all

sudo mount /dev/mmcblk1p1 /mnt/boot
Activate the swap partition

Code: Select all

sudo swapon /dev/mmcblk1p5
Generate /etc/fstab

Code: Select all

genfstab -U /mnt | sudo tee /mnt/etc/fstab
Enter the chroot containing the newly installed system

Code: Select all

sudo mount -t devpts devpts /mnt/dev/pts
sudo mount -t proc proc /mnt/proc
sudo mount -t sysfs sysfs /mnt/sys
sudo cp /proc/mounts /mnt/etc/mtab
sudo chroot /mnt /bin/bash --login
Install Linux packages

Code: Select all

apt install linux-image-armmp flash-kernel
NOTE: It seems that a warning similar to the following can safely be ignored:
Warning: root device /dev/disk/by-uuid/351bdce6-b811-4df0-ab7b-31fdd7b05ddd does not exist
Perform post-installation tasks
For inspiration, see https://wiki.archlinux.org/title/Instal ... stallation. At the very least, you probably want to set a root password or set up some other user account to be able to log in on next boot.

---

In summary, the steps above let me install Debian stable on my BeagleBone Black devices without using the (currently) broken Debian installer, which is great as a workaround. Many thanks for that!

With that said, it does take a lot more manual work and longer time than the fully automated process that I previously employed—using a preseeded Debian installer: https://github.com/joelpet/debian-prese ... eboneblack

Any idea where I can reach out to have someone point me in the right direction of fixing the kernel crash while booting the installer, or at least providing useful debugging information that might be helpful in doing so?

Post Reply