Re: KHADAS EDGE V booting hangs if I install UEFI instead of u-boot
Mario Marietto <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <CA+1FSijDkSEqMqGdOBgthP1F7x84qwuT4B2iEU77ZeuMP_huhQ@mail.gmail.com> |
>Well, the above for /dev/mmcsd1 (the eMMC) is very interesting. It indicates another place that a ->uboot and other things might be found and used,independent of the microsd card in the slot. I know. It's the internal eMMC of the board. At the beginning,when I bought it,Android was installed there. Android boots as default until I have destroyed it and then,I was able to boot FreeBSD installed on the sd card. ->Does the system appear to do any initial boot activity when there is no microsd card in the slot ? ->Does it still report those kinds of messages ? nothing activity,no messages on the serial console. Since I want to use a 14.x kernel that hasn't been patched and configured to work for the KHADAS,but for the RockPro64 and I know when, more or less,the trembling of the screen starts,I did something like this: sysctl hw.clock >somefile.txt on both boards using 14.x This is what I've got : FreeBSD 14.2 for RockPro64 : (with the panfrost enabled) : https://pastebin.ubuntu.com/p/tPV3XzWV26/ FreeBSD 14.2 for RockPro64 running on KHADAS (with the panfrost enabled) : the same image as before). hw.clock.emmc_cardclock.enable_cnt: 0 hw.clock.emmc_cardclock.childrens: hw.clock.emmc_cardclock.parents: clk_emmc hw.clock.emmc_cardclock.parent: clk_emmc hw.clock.emmc_cardclock.frequency: 198000000 hw.clock.rk808-clkout2.enable_cnt: 0 hw.clock.rk808-clkout2.childrens: hw.clock.rk808-clkout2.parents: hw.clock.rk808-clkout2.parent: hw.clock.rk808-clkout2.gate: unimplemented hw.clock.rk808-clkout2.frequency: 32768 hw.clock.hclk_i2s0.enable_cnt: 1 hw.clock.hclk_i2s0.childrens: hw.clock.hclk_i2s0.parents: hclk_perilp1 hw.clock.hclk_i2s0.parent: hclk_perilp1 hw.clock.hclk_i2s0.gate: unimplemented How can I add the missing entries ? On Fri, Aug 8, 2025 at 7:14 AM Mark Millard <[email protected]> wrote: > On Aug 7, 2025, at 17:20, Mario Marietto <[email protected]> wrote: > > > On FreeBSD 13.0 for the KHADAS : > > > > root@khadas-edge:~ # gpart show > > > > > => 40 249737136 mmcsd0 GPT (119G) > > > 40 32728 - free - (16M) > > > 32768 102400 1 efi (50M) > > > 135168 524288 2 freebsd-swap (256M) > > > 659456 249073664 3 freebsd-ufs (119G) > > > 249733120 4056 - free - (2.0M) > > > > > > => 34 61071293 mmcsd1 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 1 !d3370000-0000-442a-8000-354200006eec > (4.0M) > > 24576 8192 2 !8a760000-0000-415c-8000-5d7c000009ab > (4.0M) > > 32768 8192 3 !1a7e0000-0000-446f-8000-4ff800003479 > (4.0M) > > 40960 8192 4 !aa780000-0000-4420-8000-68df000072ff > (4.0M) > > 49152 8192 5 !63200000-0000-4a03-8000-195800001ce4 > (4.0M) > > 57344 2048 6 !6d470000-0000-4e7e-8000-688c00005cd1 > (1.0M) > > 59392 65536 7 !ef500000-0000-474c-8000-6ea20000346e > (32M) > > 124928 8192 8 !11340000-0000-4d7b-8000-57c300007662 > (4.0M) > > 133120 196608 9 !fd7f0000-0000-4970-8000-661700004a56 > (96M) > > 329728 229376 10 !d8510000-0000-4360-8000-70c500002df1 > (112M) > > 559104 786432 11 !cd600000-0000-4255-8000-5df600006edc > (384M) > > 1345536 32768 12 !01720000-0000-4f30-8000-2cd1000030be > (16M) > > 1378304 1024 13 !9f640000-0000-4123-8000-6d7f00006c40 > (512K) > > 1379328 6373376 14 !cd270000-0000-4134-8000-462700006e0a > (3.0G) > > 7752704 53318623 15 !b33f0000-0000-463e-8000-6ff2000054c3 > (25G). . . > > [For the above, see later where naming is clearer.] > > > root@khadas-edge:~ # gpart show -p > > > => 40 249737136 mmcsd0 GPT (119G) > > > 40 32728 - free - (16M) > > > 32768 102400 mmcsd0p1 efi (50M) > > > 135168 524288 mmcsd0p2 freebsd-swap (256M) > > > 659456 249073664 mmcsd0p3 freebsd-ufs (119G) > > > 249733120 4056 - free - (2.0M) > > > > > > => 34 61071293 mmcsd1 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 mmcsd1p1 !d3370000-0000-442a-8000-354200006eec > (4.0M) > > 24576 8192 mmcsd1p2 !8a760000-0000-415c-8000-5d7c000009ab > (4.0M) > > 32768 8192 mmcsd1p3 !1a7e0000-0000-446f-8000-4ff800003479 > (4.0M) > > 40960 8192 mmcsd1p4 !aa780000-0000-4420-8000-68df000072ff > (4.0M) > > 49152 8192 mmcsd1p5 !63200000-0000-4a03-8000-195800001ce4 > (4.0M) > > 57344 2048 mmcsd1p6 !6d470000-0000-4e7e-8000-688c00005cd1 > (1.0M) > > 59392 65536 mmcsd1p7 !ef500000-0000-474c-8000-6ea20000346e > (32M) > > 124928 8192 mmcsd1p8 !11340000-0000-4d7b-8000-57c300007662 > (4.0M) > > 133120 196608 mmcsd1p9 !fd7f0000-0000-4970-8000-661700004a56 > (96M) > > 329728 229376 mmcsd1p10 !d8510000-0000-4360-8000-70c500002df1 > (112M) > > 559104 786432 mmcsd1p11 !cd600000-0000-4255-8000-5df600006edc > (384M) > > 1345536 32768 mmcsd1p12 !01720000-0000-4f30-8000-2cd1000030be > (16M) > > 1378304 1024 mmcsd1p13 !9f640000-0000-4123-8000-6d7f00006c40 > (512K) > > 1379328 6373376 mmcsd1p14 !cd270000-0000-4134-8000-462700006e0a > (3.0G) > > 7752704 53318623 mmcsd1p15 !b33f0000-0000-463e-8000-6ff2000054c3 > (25G) > > [For the above, see later where naming is clearer.] > > > root@khadas-edge:~ # gpart show -pl > > > => 40 249737136 mmcsd0 GPT (119G) > > > 40 32728 - free - (16M) > > > 32768 102400 mmcsd0p1 efi (50M) > > > 135168 524288 mmcsd0p2 swapfs (256M) > > > 659456 249073664 mmcsd0p3 install (119G) > > > 249733120 4056 - free - (2.0M) > > > > > > => 34 61071293 mmcsd1 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 mmcsd1p1 uboot (4.0M) > > > 24576 8192 mmcsd1p2 trust (4.0M) > > > 32768 8192 mmcsd1p3 misc (4.0M) > > > 40960 8192 mmcsd1p4 dtb (4.0M) > > > 49152 8192 mmcsd1p5 dtbo (4.0M) > > > 57344 2048 mmcsd1p6 vbmeta (1.0M) > > > 59392 65536 mmcsd1p7 boot (32M) > > > 124928 8192 mmcsd1p8 security (4.0M) > > > 133120 196608 mmcsd1p9 recovery (96M) > > > 329728 229376 mmcsd1p10 backup (112M) > > > 559104 786432 mmcsd1p11 cache (384M) > > > 1345536 32768 mmcsd1p12 metadata (16M) > > > 1378304 1024 mmcsd1p13 frp (512K) > > > 1379328 6373376 mmcsd1p14 super (3.0G) > > > 7752704 53318623 mmcsd1p15 userdata (25G) > > Well, the above for /dev/mmcsd1 (the eMMC) is very > interesting. It indicates another place that a > uboot and other things might be found and used, > independent of the microsd card in the slot. > > The [CORRUPT] note suggests that the "GPT 0x3190d20 > signature is wrong" might be about /dev/mmcsd1 > instead of the microsd card in the slot. That would, > in turn, suggest that the "Load uboot, ReadLba = 2000" > and "Load OK, addr=0x200000, size=0xf0000" might also > be from/for activity using /dev/mmcsd1 . > > But I do not know. > > Does the system appear to do any initial boot > activity when there is no microsd card in the slot? > Does it still report those kinds of messages? > > > root@khadas-edge:~ # df -m > > > > Filesystem 1M-blocks Used Avail Capacity Mounted on > > > /dev/gpt/install 117778 50625 57731 47% / > > > devfs 0 0 0 100% /dev > > > fdescfs 0 0 0 100% /dev/fd > > > procfs 0 0 0 100% /proc > > > /dev/md0 61 0 56 0% /var/log > > > tmpfs 1024 0 1023 0% /tmp > > > > FreeBSD 14.2 for RockPro64 running on KHADAS (with the panfrost enabled) > : the same image as before : > > > > root@Rock:~ # gpart show > > > => 40 384503735 mmcsd0 GPT (183G) > > > 40 32728 - free - (16M) > > > 32768 102400 1 efi (50M) > > > 135168 368209920 2 freebsd-ufs (176G) > > > 368345088 16154624 3 freebsd-swap (7.7G) > > > 384499712 4063 - free - (2.0M) > > > > > > => 34 61071293 mmcsd1 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 1 !d3370000-0000-442a-8000-354200006eec > (4.0M) > > 24576 8192 2 !8a760000-0000-415c-8000-5d7c000009ab > (4.0M) > > 32768 8192 3 !1a7e0000-0000-446f-8000-4ff800003479 > (4.0M) > > 40960 8192 4 !aa780000-0000-4420-8000-68df000072ff > (4.0M) > > 49152 8192 5 !63200000-0000-4a03-8000-195800001ce4 > (4.0M) > > 57344 2048 6 !6d470000-0000-4e7e-8000-688c00005cd1 > (1.0M) > > 59392 65536 7 !ef500000-0000-474c-8000-6ea20000346e > (32M) > > 124928 8192 8 !11340000-0000-4d7b-8000-57c300007662 > (4.0M) > > 133120 196608 9 !fd7f0000-0000-4970-8000-661700004a56 > (96M) > > 329728 229376 10 !d8510000-0000-4360-8000-70c500002df1 > (112M) > > 559104 786432 11 !cd600000-0000-4255-8000-5df600006edc > (384M) > > 1345536 32768 12 !01720000-0000-4f30-8000-2cd1000030be > (16M) > > 1378304 1024 13 !9f640000-0000-4123-8000-6d7f00006c40 > (512K) > > 1379328 6373376 14 !cd270000-0000-4134-8000-462700006e0a > (3.0G) > > 7752704 53318623 15 !b33f0000-0000-463e-8000-6ff2000054c3 > (25G) > > [For the above, see later where naming is clearer.] > > > => 34 61071293 diskid/DISK-F84B4A79 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 1 > !d3370000-0000-442a-8000-354200006eec (4.0M) > > 24576 8192 2 > !8a760000-0000-415c-8000-5d7c000009ab (4.0M) > > 32768 8192 3 > !1a7e0000-0000-446f-8000-4ff800003479 (4.0M) > > 40960 8192 4 > !aa780000-0000-4420-8000-68df000072ff (4.0M) > > 49152 8192 5 > !63200000-0000-4a03-8000-195800001ce4 (4.0M) > > 57344 2048 6 > !6d470000-0000-4e7e-8000-688c00005cd1 (1.0M) > > 59392 65536 7 > !ef500000-0000-474c-8000-6ea20000346e (32M) > > 124928 8192 8 > !11340000-0000-4d7b-8000-57c300007662 (4.0M) > > 133120 196608 9 > !fd7f0000-0000-4970-8000-661700004a56 (96M) > > 329728 229376 10 > !d8510000-0000-4360-8000-70c500002df1 (112M) > > 559104 786432 11 > !cd600000-0000-4255-8000-5df600006edc (384M) > > 1345536 32768 12 > !01720000-0000-4f30-8000-2cd1000030be (16M) > > 1378304 1024 13 > !9f640000-0000-4123-8000-6d7f00006c40 (512K) > > 1379328 6373376 14 > !cd270000-0000-4134-8000-462700006e0a (3.0G) > > 7752704 53318623 15 > !b33f0000-0000-463e-8000-6ff2000054c3 (25G) > > [For the above, see later where naming is clearer.] > > > root@Rock:~ # gpart show -p > > > => 40 384503735 mmcsd0 GPT (183G) > > > 40 32728 - free - (16M) > > > 32768 102400 mmcsd0p1 efi (50M) > > > 135168 368209920 mmcsd0p2 freebsd-ufs (176G) > > > 368345088 16154624 mmcsd0p3 freebsd-swap (7.7G) > > > 384499712 4063 - free - (2.0M) > > > > > > => 34 61071293 mmcsd1 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 mmcsd1p1 !d3370000-0000-442a-8000-354200006eec > (4.0M) > > 24576 8192 mmcsd1p2 !8a760000-0000-415c-8000-5d7c000009ab > (4.0M) > > 32768 8192 mmcsd1p3 !1a7e0000-0000-446f-8000-4ff800003479 > (4.0M) > > 40960 8192 mmcsd1p4 !aa780000-0000-4420-8000-68df000072ff > (4.0M) > > 49152 8192 mmcsd1p5 !63200000-0000-4a03-8000-195800001ce4 > (4.0M) > > 57344 2048 mmcsd1p6 !6d470000-0000-4e7e-8000-688c00005cd1 > (1.0M) > > 59392 65536 mmcsd1p7 !ef500000-0000-474c-8000-6ea20000346e > (32M) > > 124928 8192 mmcsd1p8 !11340000-0000-4d7b-8000-57c300007662 > (4.0M) > > 133120 196608 mmcsd1p9 !fd7f0000-0000-4970-8000-661700004a56 > (96M) > > 329728 229376 mmcsd1p10 !d8510000-0000-4360-8000-70c500002df1 > (112M) > > 559104 786432 mmcsd1p11 !cd600000-0000-4255-8000-5df600006edc > (384M) > > 1345536 32768 mmcsd1p12 !01720000-0000-4f30-8000-2cd1000030be > (16M) > > 1378304 1024 mmcsd1p13 !9f640000-0000-4123-8000-6d7f00006c40 > (512K) > > 1379328 6373376 mmcsd1p14 !cd270000-0000-4134-8000-462700006e0a > (3.0G) > > 7752704 53318623 mmcsd1p15 !b33f0000-0000-463e-8000-6ff2000054c3 > (25G) > > [See later where naming is clearer.] > > > => 34 61071293 diskid/DISK-F84B4A79 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 diskid/DISK-F84B4A79p1 > !d3370000-0000-442a-8000-354200006eec (4.0M) > > 24576 8192 diskid/DISK-F84B4A79p2 > !8a760000-0000-415c-8000-5d7c000009ab (4.0M) > > 32768 8192 diskid/DISK-F84B4A79p3 > !1a7e0000-0000-446f-8000-4ff800003479 (4.0M) > > 40960 8192 diskid/DISK-F84B4A79p4 > !aa780000-0000-4420-8000-68df000072ff (4.0M) > > 49152 8192 diskid/DISK-F84B4A79p5 > !63200000-0000-4a03-8000-195800001ce4 (4.0M) > > 57344 2048 diskid/DISK-F84B4A79p6 > !6d470000-0000-4e7e-8000-688c00005cd1 (1.0M) > > 59392 65536 diskid/DISK-F84B4A79p7 > !ef500000-0000-474c-8000-6ea20000346e (32M) > > 124928 8192 diskid/DISK-F84B4A79p8 > !11340000-0000-4d7b-8000-57c300007662 (4.0M) > > 133120 196608 diskid/DISK-F84B4A79p9 > !fd7f0000-0000-4970-8000-661700004a56 (96M) > > 329728 229376 diskid/DISK-F84B4A79p10 > !d8510000-0000-4360-8000-70c500002df1 (112M) > > 559104 786432 diskid/DISK-F84B4A79p11 > !cd600000-0000-4255-8000-5df600006edc (384M) > > 1345536 32768 diskid/DISK-F84B4A79p12 > !01720000-0000-4f30-8000-2cd1000030be (16M) > > 1378304 1024 diskid/DISK-F84B4A79p13 > !9f640000-0000-4123-8000-6d7f00006c40 (512K) > > 1379328 6373376 diskid/DISK-F84B4A79p14 > !cd270000-0000-4134-8000-462700006e0a (3.0G) > > 7752704 53318623 diskid/DISK-F84B4A79p15 > !b33f0000-0000-463e-8000-6ff2000054c3 (25G) > > [See later where naming is clearer.] > > > root@Rock:~ # gpart show -pl > > > => 40 384503735 mmcsd0 GPT (183G) > > > 40 32728 - free - (16M) > > > 32768 102400 mmcsd0p1 efi (50M) > > > 135168 368209920 mmcsd0p2 rootfs (176G) > > > 368345088 16154624 mmcsd0p3 (null) (7.7G) > > > 384499712 4063 - free - (2.0M) > > > > > > => 34 61071293 mmcsd1 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 mmcsd1p1 uboot (4.0M) > > > 24576 8192 mmcsd1p2 trust (4.0M) > > > 32768 8192 mmcsd1p3 misc (4.0M) > > > 40960 8192 mmcsd1p4 dtb (4.0M) > > > 49152 8192 mmcsd1p5 dtbo (4.0M) > > > 57344 2048 mmcsd1p6 vbmeta (1.0M) > > > 59392 65536 mmcsd1p7 boot (32M) > > > 124928 8192 mmcsd1p8 security (4.0M) > > > 133120 196608 mmcsd1p9 recovery (96M) > > > 329728 229376 mmcsd1p10 backup (112M) > > > 559104 786432 mmcsd1p11 cache (384M) > > > 1345536 32768 mmcsd1p12 metadata (16M) > > > 1378304 1024 mmcsd1p13 frp (512K) > > > 1379328 6373376 mmcsd1p14 super (3.0G) > > > 7752704 53318623 mmcsd1p15 userdata (25G) > > > The above is the same /dev/mmcsd1 (eMMC). > > > => 34 61071293 diskid/DISK-F84B4A79 GPT (29G) [CORRUPT] > > > 34 16350 - free - (8.0M) > > > 16384 8192 diskid/DISK-F84B4A79p1 uboot (4.0M) > > > 24576 8192 diskid/DISK-F84B4A79p2 trust (4.0M) > > > 32768 8192 diskid/DISK-F84B4A79p3 misc (4.0M) > > > 40960 8192 diskid/DISK-F84B4A79p4 dtb (4.0M) > > > 49152 8192 diskid/DISK-F84B4A79p5 dtbo (4.0M) > > > 57344 2048 diskid/DISK-F84B4A79p6 vbmeta (1.0M) > > > 59392 65536 diskid/DISK-F84B4A79p7 boot (32M) > > > 124928 8192 diskid/DISK-F84B4A79p8 security (4.0M) > > > 133120 196608 diskid/DISK-F84B4A79p9 recovery (96M) > > > 329728 229376 diskid/DISK-F84B4A79p10 backup (112M) > > > 559104 786432 diskid/DISK-F84B4A79p11 cache (384M) > > > 1345536 32768 diskid/DISK-F84B4A79p12 metadata (16M) > > > 1378304 1024 diskid/DISK-F84B4A79p13 frp (512K) > > > 1379328 6373376 diskid/DISK-F84B4A79p14 super (3.0G) > > > 7752704 53318623 diskid/DISK-F84B4A79p15 userdata (25G) > > The above is the same /dev/mmcsd1 (eMMC). > > > root@Rock:~ # df -m > > > > > Filesystem 1M-blocks Used Avail Capacity Mounted on > > > /dev/ufs/rootfs 174137 24879 135327 16% / > > > devfs 0 0 0 0% /dev > > > /dev/msdosfs/EFI 49 3 46 6% /boot/efi > > > tmpfs 11538 0 11538 0% /tmp > > > > > > On Thu, Aug 7, 2025 at 9:01 PM Mark Millard <[email protected]> wrote: > > > > > > On Aug 7, 2025, at 09:27, Mario Marietto <[email protected]> wrote: > > > > > . . . > > > FreeBSD 14.2-RELEASE-p1 GENERIC arm64 > > > > . . . > > > GEOM: mmcsd1: the primary GPT table is corrupt or invalid. > > > > GEOM: mmcsd1: using the secondary instead -- recovery strongly > advised. > > > GEOM: diskid/DISK-F84B4A79: the primary GPT table is corrupt or > invalid. > > > GEOM: diskid/DISK-F84B4A79: using the secondary instead -- recovery > strongly advised. > > > > Given the above . . . > > > > When booted via FreeBSD 13.0 , what do the following > > commands show? > > > > # gpart show > > . . . > > # gpart show -p > > . . . > > # gpart show -pl > > . . . > > # df -m > > . . . > > > > Possibly: also for 14.2 . > > > > > > > Dual Console: Video Primary, Serial Secondary > > > > I've suggested adjusting /boot/loader.conf > > to just have Serial enabled for now: > > > > boot_multicons="NO" > > boot_serial="YES" > > > > > . . . > > > > FreeBSD 13.0-RELEASE-p1 #0: Sun Jun 13 17:07:42 MSK 2021 > > > > . . . > > > > Trying to mount root from ufs:/dev/gpt/install [rw,noatime]... > > > > > GEOM: mmcsd1: the primary GPT table is corrupt or invalid. > > > > > uhub4: 2 ports with 2 removable, self powered > > > > > GEOM: mmcsd1: using the secondary instead -- recovery strongly > advised. > > > > uhub2: 1 port with 1 removable, self powered > > > > > Dual Console: Serial Primary, Video Secondary > > > > > . . . > > > > === > Mark Millard > marklmi at yahoo.com > > -- Mario.