Beaglebone black emmc boot

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

Beaglebone black emmc boot

Postby cda0 » Mon Aug 19, 2013 3:11 pm

Guys,

I followed the instructions and have Arch on the SD card, I can boot from this into and Arch system.

When i follow the same instructions to install to emmc and remove the sd the boot halts after the pinctrk and before the Welcome to Arch Linux ARM! message.

When i put the SD card back in WITHOUT pressing the SD boot button the system boots normall but /dev/mmcblk0p2 is mounted at / when i type "mount".

What mistakes have I made?

CDA0
cda0
 
Posts: 4
Joined: Mon Aug 19, 2013 3:02 pm

Re: Beaglebone black emmc boot

Postby jernst » Tue Aug 20, 2013 4:28 pm

I think I have the same problem. I followed the instructions on http://archlinuxarm.org/platforms/armv7 ... bone-black for both uSD card, and the eMMC, and both now contain the same data. If the uSD card is inserted, the BeagleBone Black boots fine. If it is not inserted, the boot process stops with the penguin icon on HDMI.
jernst
 
Posts: 78
Joined: Tue Aug 20, 2013 4:22 pm
Location: Silicon Valley

Re: Beaglebone black emmc boot

Postby cda0 » Wed Aug 21, 2013 10:02 am

sounds like the same issue.

Both SD and mmc have identical data. When I boot from emmc with the SD card in the rootfs is /dev/mmcblk0p2 not /dev/mmcblk1p2. I have edited uEnv.txt to try and force it to boot with /dev/mmcblk1p2 as root but no joy, I will try and compile uboot from source and see if that helps.
cda0
 
Posts: 4
Joined: Mon Aug 19, 2013 3:02 pm

Re: Beaglebone black emmc boot

Postby WarheadsSE » Wed Aug 21, 2013 12:15 pm

It really just needs a uboot comand correction. That is all.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Beaglebone black emmc boot

Postby cda0 » Wed Aug 21, 2013 12:38 pm

Can you point me in the right direction of the uboot command change? do you have a uEnv.txt for it? I tried hard coding the variables to /dev/mmcblk1p2 but no luck.

recompiling u-boot make no difference.
cda0
 
Posts: 4
Joined: Mon Aug 19, 2013 3:02 pm

Re: Beaglebone black emmc boot

Postby sorcix » Thu Aug 22, 2013 1:56 pm

I'm having the same problem. Booting from SD card works, emmc with same contents doesn't.
sorcix
 
Posts: 1
Joined: Thu Aug 22, 2013 1:55 pm

Re: Beaglebone black emmc boot

Postby scarpino » Sat Aug 24, 2013 7:28 am

Just if needed, I solved by forcing the device this way:
$this->bbcode_second_pass_code('', 'setmmcroot=setenv mmcroot /dev/mmcblk0p2 rw')
scarpino
 
Posts: 5
Joined: Wed Aug 21, 2013 2:27 pm

Re: Beaglebone black emmc boot

Postby roboconnell » Sun Sep 01, 2013 1:15 am

thanks scarpino - this worked for me.
I had same problem: with SD card in, the default uEnv works, with the SD card out, it does not prior to the change. I'm just trying to understand why the original doesn't work with the SD card out...it seems like it should!

my uEnv.txt with your mod is below
originally 2nd last line read:
$this->bbcode_second_pass_code('', '
setmmcroot=setenv mmcroot /dev/mmcblk${mmcdev}p2 rw')

I'm trying to understand why the default one does not work: since your change is to only the setmmcroot cmd, then I assume the first line is being completed, which only then makes sense to me if mmcdev is incorrectly set in that line or incorrectly read in the original setmmcroot cmd? I only see the penguin prior to the change - no text for "No zImage found"

here's my working uEnv.txt
$this->bbcode_second_pass_code('', '
uenvcmd=if load mmc 0:2 ${loadaddr} /boot/zImage; then setenv mmcdev 0; run uenvboot; else setenv mmcdev 1; setenv mmcroot /dev/mmcblk1p2 rw; if load mmc 1:2 ${loadaddr} /boot/zImage; then run uenvboot; else echo No zImage found; fi; fi
uenvboot=run loadfdt; run setmmcroot; run mmcboot
setmmcroot=setenv mmcroot /dev/mmcblk0p2 rw
loadfdt=load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
')
Last edited by WarheadsSE on Sun Sep 01, 2013 3:25 am, edited 1 time in total.
Reason: wrapping with code tags
roboconnell
 
Posts: 1
Joined: Sun Sep 01, 2013 12:55 am

Re: Beaglebone black emmc boot

Postby ftravers » Sun Sep 08, 2013 8:32 am

How does the install page get updated with this info?
ftravers
 
Posts: 26
Joined: Sun Jul 28, 2013 10:52 am

Re: Beaglebone black emmc boot

Postby ftravers » Sun Sep 08, 2013 1:52 pm

This solution 1/2 works. If you plug your SD card back in ( repartitioned by and had a clean ext4 partition ), and reboot, it'll hang... so this solution doesn't work if you want to use your SD card as extra space.

I'm not confident on what the uEnv.txt should look like, but the previous version before this one was checked into git on Aug 10th worked...if someone has that.
ftravers
 
Posts: 26
Joined: Sun Jul 28, 2013 10:52 am

Next

Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 5 guests