Working image

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

Working image

Postby Wilhelm » Mon Mar 17, 2014 9:18 pm

Could someone create an Arch linux image file with all the beagle bone black default settings and packages?
So, that instead of using this old Ångström distribution or flashing it to another old Ångström distribution or to anything other bad alternatives, I would just get a working beagle bone black running on Arch linux with all the bonescripts, startup pages and usb networking.
Wilhelm
 
Posts: 7
Joined: Mon Mar 10, 2014 9:02 pm

Re: Working image

Postby Wilhelm » Wed Mar 19, 2014 5:05 pm

I created such an image. Wow. Much fun.

Download: http://matilai.net/blob/517a4a82ca57d4050c890a74cabbe08e/bbbarch.img
(Please mirror this somewhere)

Install
$this->bbcode_second_pass_code('', 'dd if=/path-to-bbbarch.img of=/path-to-emmc-device---not-partition')

Connect via usb
$this->bbcode_second_pass_code('', 'sudo ifconfig usb0 192.168.7.1
ssh 192.168.7.2 -l root
PASSWORD: root')

Upgrade
$this->bbcode_second_pass_code('', 'packer -Syu --noedit')

This image has the following features:
  • Automatic usb internet with ip 192.168.7.2
  • Zsh shell (prezto)
  • Bonescript
  • Am335x-pru
  • Gcc
  • Nodejs
  • Elinks (if problems with ldconfig or conflicting packages do: pacman -S elinks --force)
  • Vim
  • Nano
  • Wireless_tools
  • Linux 3.12
  • Wget
  • Packer (for AUR packages)
  • Python 2 and 3
  • Ruby
  • Dosfstools

Please notice that this image is created by me and you are using it on your own responsibility.
Feel free to comment and give criticism below.
The purpose of this image is to make the installation dead simple.
Wilhelm
 
Posts: 7
Joined: Mon Mar 10, 2014 9:02 pm

Re: Working image

Postby WarheadsSE » Wed Mar 19, 2014 5:44 pm

If you have not:
  • pacman -Scc
  • remove the host keys for ssh, so they are regenerated @ first boot of the image
  • clear authorized_keys and known_hosts for root.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Working image

Postby AeroSigma » Fri Apr 04, 2014 1:45 pm

Thanks for making the image, Wilhelm!

When I try to ssh in over USB, I get a connection refused, is this because of Warhead's suggestion, that the ssh keys need to be removed before you create the image? I know it's 'Much Fun', but do you think you could find the time to do that? I'd love to be able to get this working.

I've also tried logging in directly using HDMI, but the user/pass combo of root/root isn't letting me in. Is there a reason that it shouldn't be working over HDMI, or that the root password would be different?

Thanks in advance for the help, and thanks for going through the trouble to make such an image. My main compy is running windows for work reasons, and it would be a pain to have to log into a liveCD everytime I wanted to make an arch BBB sd card.
AeroSigma
 
Posts: 1
Joined: Fri Apr 04, 2014 1:35 pm

Re: Working image

Postby WarheadsSE » Fri Apr 04, 2014 2:09 pm

You could just use a small VM...
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Working image

Postby Wilhelm » Fri Apr 04, 2014 3:06 pm

If you do ifconfig -a do you get something like this:
$this->bbcode_second_pass_code('', 'usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.7.2 netmask 255.255.255.0 broadcast 192.168.7.255
inet6 fe80::2807:bbff:fe7a:b6bf prefixlen 64 scopeid 0x20<link>
ether 2a:07:bb:7a:b6:bf txqueuelen 1000 (Ethernet)
RX packets 110 bytes 7459 (7.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 58 bytes 11313 (11.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
')

usb0 is the connection link.
usb0 should be assigned with an ip: ifconfig usb0 192.168.7.2

Do you get to the login prompt?
Both the login and password should be root
There's no authorized_keys nor known_hosts in root's .ssh directory.
Wilhelm
 
Posts: 7
Joined: Mon Mar 10, 2014 9:02 pm


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 2 guests