Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues booting from BeagleBoneBlack with root=/dev/mmcblk0p2, data abort #7

Open
robamu opened this issue Jul 27, 2021 · 1 comment

Comments

@robamu
Copy link

robamu commented Jul 27, 2021

I currently have problems getting the Beagle Bone Black booted with the root pointing to a rootfs on the SD card.

I initially tried to simply copy the ext4 rootfs on the host to the rootfs partition on the SD card and boot that one. It failed with the following output

=> fatload mmc 0:1 0x80200000 zImage
9609728 bytes read in 603 ms (15.2 MiB/s)
=> fatload mmc 0:1 0x80f00000 am335x-boneblack.dtb
62852 bytes read in 6 ms (10 MiB/s)
=> setenv bootargs console=ttyO0,115200n8 root=/dev/mmcblk0p2
=> bootz 0x80200000 – 0x80f00000
data abort
pc : [<9ff6c820>]	   lr : [<9ff6c8f5>]
reloc pc : [<80813820>]	   lr : [<808138f5>]
sp : 9df38cb8  ip : 00000000	 fp : 9df3c3e4
r10: 9ffc03d0  r9 : 9df38eb8	 r8 : 9ffc03cc
r7 : 00000002  r6 : 9df3c3d0	 r5 : 82000000  r4 : 9ffc0334
r3 : 56190527  r2 : 9df3c3d1	 r1 : 00000002  r0 : 00000000
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32
Code: ffdaf7ff f85db003 0000fb04 4b0ab510 (46046802) 
Resetting CPU ...

I then tried to follow the instructions in the book exactly, using
format-sd-card.sh to set up the SD card, copying the bootloader to boot,
and then generating rootfs.ext2 with

genext2fs -b 16384 -d initramfs -D device-table.txt -U rootfs.ext2

and finally sudo dd if=rootfs.ext2 of=/dev/<rootfspartition> to flash the rootfs partition, but I get the same issue with a data abort. Does anyone have an idea what might cause this?

If I run

fatload mmc 0:1 0x80200000 zImage
fatload mmc 0:1 0x80f00000 am335x-boneblack.dtb
fatload mmc 0:1 0x81000000 uRamdisk
setenv bootargs console=ttyO0,115200n8 rdinit=/sbin/init
bootz 0x80200000 0x81000000 0x80f00000

I can boot the kernel from the initramfs in uRamdisk without issues, so I assumed that the Linux kernel image and the *.dtb file are not the issue

@robamu robamu changed the title Issues booting from BeagleBoneBlack with root=/dev/mmcblk0p2 Issues booting from BeagleBoneBlack with root=/dev/mmcblk0p2, data abort Jul 27, 2021
@amahran
Copy link

amahran commented Jul 21, 2024

you have a copy-paste issue with the hyphen in the command bootz 0x80200000 – 0x80f00000 it should be bootz 0x80200000 - 0x80f00000.

you might also need to add rootwait argument to the bootargs not to end up in kernel panic. setenv bootargs console=ttyO0,115200 root=/dev/mmcblk0p2 rootwait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants