[SOLVED] - Arch and Beaglebone.

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

[SOLVED] - Arch and Beaglebone.

Postby deathtrip » Tue Apr 17, 2012 12:37 pm

So lastnight my BeagleBone arrived and I decided to try and run ArchARM from it.

I only have FreeBSD powered boxes so I had to install the ext2/3 tools from ports.

I then used fdisk to partition my SD card and marked /dev/da0s1 as bootable, and used the following commands to format them.

$this->bbcode_second_pass_quote('', '
')# newfs_msdos -F 16 -L "bootloader" /dev/da0s1
/dev/da0s1: 256816 sectors in 16051 FAT16 clusters (8192 bytes/cluster)
BytesPerSec=512 SecPerClust=16 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=63 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=2569


and

$this->bbcode_second_pass_quote('', '
')# mkfs.ext3 -L "rootfs" /dev/da0s2
mke2fs 1.42.2 (27-Mar-2012)
Filesystem label=rootfs
OS type: FreeBSD
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
477664 inodes, 1907718 blocks
95385 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1954545664
59 block groups
32768 blocks per group, 32768 fragments per group
8096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

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


Once that was done I mounted /dev/da0s1 to /mnt/fat, and /dev/da0s2 to /mnt/ext3

I then did the following...

$this->bbcode_second_pass_quote('', '
')tar xf BeagleBone-bootloader.tar.gz -C /mnt/fat/
./mkcard.txt: Can't set user=1000/group=1000 for mkcard.txt
./MLO: Can't set user=1000/group=1000 for MLO
./u-boot.img: Can't set user=1000/group=1000 for u-boot.img
./uEnv.txt: Can't set user=1000/group=1000 for uEnv.txt
tar: Error exit delayed from previous errors.


and

$this->bbcode_second_pass_quote('', '
')# tar xf ArchLinuxARM-am33x-latest.tar.gz -C /mnt/ext3
dev/zero: Can't set user=0/group=0 for dev/zeroCan't update time for dev/zero
dev/null: Can't set user=0/group=0 for dev/nullCan't update time for dev/null
dev/console: Can't set user=0/group=0 for dev/consoleCan't update time for dev/console
lib/udev/devices/loop0: Can't set user=0/group=6 for lib/udev/devices/loop0Can't update time for lib/udev/devices/loop0
tar: Error exit delayed from previous errors.

# cp /mnt/ext3/boot/uImage /mnt/fat/


Now, from what I understand it should be bootable now.

Unfortunately I ethernet never comes on, so I'm assuming it never boots.

Any help, or ideas? Thanks.
Last edited by deathtrip on Sat Apr 21, 2012 2:57 pm, edited 1 time in total.
deathtrip
 
Posts: 4
Joined: Tue Apr 17, 2012 1:33 am
Top

Re: Arch and Beaglebone.

Postby deathtrip » Sat Apr 21, 2012 3:43 am

Update.

I have discovered my issue was with an 8gb microSD card.

After moving to a 4gb card, my issue has dissappeared and now I have a new issue.

With everything done the same way, the 4gb card will boot Linux and get all the way to this point.

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block (179,2)

.
deathtrip
 
Posts: 4
Joined: Tue Apr 17, 2012 1:33 am

Re: Arch and Beaglebone.

Postby deathtrip » Sat Apr 21, 2012 3:55 am

Ok, fixed the issue above.

FS was ext4, and needed to be ext3.
deathtrip
 
Posts: 4
Joined: Tue Apr 17, 2012 1:33 am

Re: Arch and Beaglebone.

Postby WarheadsSE » Sat Apr 21, 2012 2:45 pm

So we're all good now then? If so please edit your first post and put [Solved] at the front of its subject.

Lessons learned:
- Use ext3 not ext4
- Sometimes SD cards are persnickety
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [SOLVED] - Arch and Beaglebone.

Postby deathtrip » Sat Apr 21, 2012 3:55 pm

Thanks. :/
deathtrip
 
Posts: 4
Joined: Tue Apr 17, 2012 1:33 am

Re: [SOLVED] - Arch and Beaglebone.

Postby WarheadsSE » Sat Apr 21, 2012 4:34 pm

It's quite alright, sharing experiences like this help others learn :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Arch and Beaglebone.

Postby retsub » Sun Apr 22, 2012 4:50 pm

$this->bbcode_second_pass_quote('WarheadsSE', '
')Lessons learned:
- Use ext3 not ext4
- Sometimes SD cards are persnickety


Is it truly the cards that are persnickety or is this a u-boot or Arch issue (or some combination thereof)? I was unable to get Arch up and running on my 8GB SanDisk and couldn't seem to figure out why. I'm new to Arch, Linux, and OMAP though, so it seems reasonable to guess that there might be something simple I've overlooked. Is there something I could tune or tweak to make it work?

Beyond that, I'm hesitant to go out and buy an arbitrary 4GB SD card -- without understanding what's going wrong with my 8GB it seems I could find myself in the same position again. Is there a list of known compatible SD cards (make/model/size)? Would there be any value in starting one (or is it as simple as "any 4GB SD card will be fine")?
retsub
 
Posts: 2
Joined: Thu Mar 29, 2012 11:38 am
Top

Re: [SOLVED] - Arch and Beaglebone.

Postby fpnipo » Mon Aug 27, 2012 4:35 am

How you find de IP to access via ssh? My ethernet led is lighting, however my network modem(router) is not showing the board connected in my network, so i cant get the IP to access.

Thanks,
Felipe Nipo.
fpnipo
 
Posts: 7
Joined: Mon Aug 27, 2012 1:03 am


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 3 guests