Boot problem trying to install Arch on external hd

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

Boot problem trying to install Arch on external hd

Postby bart » Thu Dec 29, 2011 2:28 pm

Hi all,
I have a problem with my BeagleBoard-XM.
I have followed the instructions on the site archlinuxarm.org to install archlinux on the Beagleboard-xm: http://archlinuxarm.org/platforms/armv7/beagleboard-xm
If I install all (both partitions) on the sd card all works fine. The only problem that i see is that during boot I see only the linux logo (no output lines appears) but after few second appears the login prompt.
The real problem appears when I try to install Arch on an external HD. With minicom I see this log:
$this->bbcode_second_pass_code('', 'U-Boot 2011.06-dirty (Jul 19 2011 - 17:30:34)

OMAP36XX/37XX-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

In: serial
Out: serial
Err: serial
Beagle xM Rev C
No EEPROM on expansion board
Die ID #7f3000029ff80000016830c403017012
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt

** Unable to read "uEnv.txt" from mmc 0:1 **
** Bad partition 2 **
Booting from nand ...

no devices available
Wrong Image Format for bootm command
ERROR: can't get kernel image! ')From what could depend on?
bart
 
Posts: 5
Joined: Thu Dec 29, 2011 2:19 pm

Re: Boot problem trying to install Arch on external hd

Postby WarheadsSE » Thu Dec 29, 2011 2:59 pm

I suppose it is looking for the uEnv.txt from the SDcard, which could then point to the rootfs on the hdd.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Boot problem trying to install Arch on external hd

Postby bart » Thu Dec 29, 2011 6:34 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'I') suppose it is looking for the uEnv.txt from the SDcard, which could then point to the rootfs on the hdd.
So? What should I do? I followed the installation guide of archlinux ... Thanks.
bart
 
Posts: 5
Joined: Thu Dec 29, 2011 2:19 pm

Re: Boot problem trying to install Arch on external hd

Postby WarheadsSE » Thu Dec 29, 2011 7:37 pm

Is the SD card still present?

have you simply changed the pointer to the rootfs?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Boot problem trying to install Arch on external hd

Postby bart » Thu Dec 29, 2011 8:23 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'I')s the SD card still present?

have you simply changed the pointer to the rootfs?
Yes, the sd card has the first partition with the archlinux tarball.
Points 1 and 2
$this->bbcode_second_pass_quote('', '1')) At a minimum, you need to create the first partition on an SD card to store the bootloader files and kernel uImage. For the root filesystem you can choose to use either a second partition on the SD card or a USB drive.
2)The first partition should be FAT16 LBA (partition type 0E), and a size of 128MB is plenty of space for the needed files.
Format the partition with mkfs.vfat, for example: mkfs.vfat -F 16 -n "bootloader" /dev/mmcblk0p1

I excluded point 3...
$this->bbcode_second_pass_quote('', '3'))If you plan to use the SD card for the root filesystem as well, create a second partition of type Linux filling the rest of the free space, preferably at least 1-2GB.
Format the partition with mkfs.ext3, for example: mkfs.ext3 -L "rootfs" /dev/mmcblk0p2

Then I followed the following points:
$this->bbcode_second_pass_quote('', '
')4)If you plan to use a USB drive for the root filesystem, create a first partition on the drive of type Linux using at least 1-2GB.
Format the partition with mkfs.ext3, for example: mkfs.ext3 -L "rootfs" /dev/sdb1
5)Download the BeagleBoard bootloader tarball and extract the files onto the first partition of the SD card. These files contain the U-Boot binary needed to load the kernel.
6)Download the root filesystem tarball and extract it (as root) to the ext3 partition on either the SD card or the USB drive. It is important to do this as root, as special files need to be created as part of the filesystem that can only be created by root.
7)Copy /boot/uImage from the ext3 partition to the fat16 partition.
8)Create a boot.scr file following the instructions below to boot into the system.


But BeagleBoard-XM does not boot.

I also tried to create a file: uEnv.txt on the first partition (inside the sd) with this instructions:
http://elinux.org/BeagleBoardAngstrom#C ... leBoard-xM

changing $this->bbcode_second_pass_code('', ' root=${mmcroot} rootfstype=${mmcrootfstype}') into $this->bbcode_second_pass_code('', 'root=/dev/sdb1 rootfstype=ext3') but problem remains.
bart
 
Posts: 5
Joined: Thu Dec 29, 2011 2:19 pm
Top

Re: Boot problem trying to install Arch on external hd

Postby kmihelich » Thu Dec 29, 2011 9:40 pm

There is nothing special or hard about switching to a usb drive. Everything on the first partition of the SD card must remain the same, including bootloader and the kernel uImage. All you change is the 'root=' location in either boot.scr or uEnv.txt depending on u-boot version.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Boot problem trying to install Arch on external hd

Postby bart » Fri Dec 30, 2011 10:49 am

$this->bbcode_second_pass_quote('kmihelich', 'T')here is nothing special or hard about switching to a usb drive. Everything on the first partition of the SD card must remain the same, including bootloader and the kernel uImage. All you change is the 'root=' location in either boot.scr or uEnv.txt depending on u-boot version.
Ok, but how do I know the 'root=' location? In practice I do not know what to put here not knowing if it will be seen as sdb or other. I'm using boot.scr as described here:
$this->bbcode_second_pass_quote('', '1'))Create a file called bootcmd, and place U-Boot commands in there like a script file. For example:
$this->bbcode_second_pass_code('', 'setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait'
mmc init
fatload mmc 0 0x80300000 uImage
bootm 0x80300000
boot')
2)Use mkimage to create the boot.scr file. For example:
$this->bbcode_second_pass_code('', 'mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Beagleboard-xM boot script" -d bootcmd boot.scr')
Copy the resulting boot.scr to the fat16 partition on the SD card.

If I use an external HD Is it correct to have only one partition on the sd card? Thanks for help.
bart
 
Posts: 5
Joined: Thu Dec 29, 2011 2:19 pm
Top

Re: Boot problem trying to install Arch on external hd

Postby bart » Mon Jan 02, 2012 12:54 pm

I recreated the two partitions on the SD card and Archlinux has booted normally. I plugged my external hard drive and I saw that is detected as /dev/sda1.
I then edited the "bootcmd" file in this way:
$this->bbcode_second_pass_code('', 'setenv bootargs 'console=ttyO2,115200n8 root=/dev/sda1 rw rootfstype=ext3 rootwait'
mmc init
fatload mmc 0 0x80300000 uImage
bootm 0x80300000
boot')
I regenerated bootscr.
I deleted the second partition on the SD card and I replaced boot.scr
The problem remains, will not boot. Ideas?
bart
 
Posts: 5
Joined: Thu Dec 29, 2011 2:19 pm


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 19 guests