|How to build Arch Linux||Maro||2/2/13 2:50 PM|
i'm new in linux but after a deep search and a lot of time i was able to build Arch Linux into my micro sd and i want to share the process:
some notes before starting
1)all command must be preceded by sudo
2)in my terminal the sdcard was in /dev/sdb and it's can be change for you, you can find by use command mount
3)with command mount you can find the name and location of your sd partiion, for me it was /media/andrea/boot and /media/andrea/ALARM
Optional: open a new terminal and go to desktop
mkdir arc && cd arc
Now we build a bootable sd for Mele A100
But since we have a cubiboard we need to change the hw package
the file in kernel and bootloader must go on the boot partion, for me it was on /media/andrea/boot
the file in rootfs must fgo on the other partition, for me it was on /media/andrea/ALAMR
Now finaly we have a Arch Linux bootable, but if you have a monitor with 1280x1024 resolution you can edit the file called uEnv.txt in boot partiion:
The username and password is root, i suggest to do this command at first boot:
If you want to use arch linux with a desktop environment:
Now you have all you need to use linux on the cubiboard but if you want you can download this packages (https://wiki.archlinux.org/index.php/List_of_Applications)
1)No HDMI AUDIO (https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#HDMI_Output_Does_Not_Work)
from terminal digit aplay -l now you can see the audio hardware of cubieboard, remember the card and device number of the hdmi
digit on the terminal aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav to test if you can hears the sound from hdmi
if it correct digit nano ~/.asoundrc and add:
For now it all, i hope you can understand (my english is not so good)
|Re: [cubieboard] How to build Arch Linux||Roman Mamedov||2/2/13 2:56 PM|
On Sat, 2 Feb 2013 14:50:53 -0800 (PST)Couldn't you just share the SD-card image that you got in the end? Why make
every user wanting to run ArchLinux need to manually repeat the lengthy and
|Re: [cubieboard] How to build Arch Linux||Maro||2/2/13 3:11 PM|
I would but now my linux is very customized and if i rebuild all i don't know how to make a image of my sd card (if i use dd command i will create an iso of 8gb)
|Re: [cubieboard] How to build Arch Linux||Simos Xenitellis||2/2/13 3:14 PM|
I think it is good to have the process documented, for those who want
to build experience.
Do you think you can put those instructions on the Wiki?
I think a page at http://linux-sunxi.org/Cubieboard/ArchLinux would be ok.
|Re: [cubieboard] How to build Arch Linux||Roman Mamedov||2/3/13 12:29 AM|
On Sun, 3 Feb 2013 01:14:49 +0200It is good to have it documented, but not good having it as the only option,
it's as if there were no GNU/Linux distros and everyone had to follow  just
to install anything at all on their computer.
Why not http://linux-sunxi.org/ArchLinux ?
|Re: [cubieboard] How to build Arch Linux||Roman Mamedov||2/3/13 12:30 AM|
On Sat, 2 Feb 2013 15:11:31 -0800 (PST)1) work with a 2GB SD card, or a 2GB partition on a 8GB card;
2) fill the free space with zeroes on the card,
dd if=/dev/zero bs=1M of=zerofile; rm zerofile
after both of these you will end up with a 2GB image (it's not proper to
call it ISO), which will compress really well, down to only the size of files
you have on your root FS, and probably 2x beyond that.
|Re: How to build Arch Linux||George Ioakimedes||2/3/13 7:55 AM|
Nicely written instructions, these should definitely go in the Wiki. How does Arch run compared to Linaro ALIP, do you see any improvements in "performance"?
|Re: [cubieboard] How to build Arch Linux||Patrick Wood||2/3/13 10:23 AM|
Use resize2fs to make the file system smaller before you dd it:
Assuming you've put the SD card on a linux system and it's at /dev/sdb:
e2fsck -f /dev/sdb2 # resize2fs requires you to check the file system first
resize2fs /dev/sdb2 2G
now mount the file system and zero out the free space as described previously.
Since the partition size hasn't changed, you'll have to set the bs and count options to dd properly to read the correct amount of data from /dev/sdb2. I believe resize2fs reports the new file system size in 4K chunks, so the proper dd command looks like:
dd if=/dev/sdb2 of=my-distro.img bs=4K count=524288 # note: the count should be set to whatever resize2fs reports as the new file system
To check that you have the entire file system:
e2fsck -f my-distro.img
If this succeeds, compress the .img file and you're done. You can expand your SD card's file system with resize2fs without any size setting:
|Re: How to build Arch Linux||Maro||2/3/13 2:40 PM|
thanks for the instruction i will post the image in the next few days.
I didn't use the linaro alip like arch but i think that arch linux is a bit much faster than linaro and with this build you start with nothing (in terms of app) so you can install whatever you want
I found some errors in my first post so here i rewrite with the correction:
Some notes before starting
1)all command must be preceded by sudo
The file in kernel and bootloader must go on the boot partion, for me it was on /media/andrea/boot
you can found your partition with the command mount
The file in rootfs must fgo on the other partition, for me it was on /media/andrea/ALAMR
Now finaly we have a Arch Linux bootable, but if you have a monitor with 1280x1024 resolution you can edit the file called uEnv.txt in boot partition:
The username and password is rootAt the first boot i suggest to do this command at first boot:
To set the keyboard layout (for me isn't work)
I found that the script used to create the sd card make two partition with the same dimension and it's bad due to that the boot partition require less than 50 mb so for the solution i done this:
|Re: [cubieboard] Re: How to build Arch Linux||Bastiaan van den Berg||2/3/13 4:17 PM|
|Re: How to build Arch Linux||Maro||2/4/13 7:52 AM|
thanks to Roman and Patrick i was able to create an image of arch linux, here the link download
The image is compressed with winrar and shoud work with an micro sd > 2gb
The image is come with lxde if you want to restore the basic arch linux:
If you want to change the login:
if you want to change desktop environment
If you have any problem write here.
Now the solution for some other troubleshooting
No internet connection with Ethernet cable
put your micro sd into the computer and open a terminal
personal note: i thinks that google group is a bad place for a cubieboard forum
|Re: [cubieboard] Re: How to build Arch Linux||Bastiaan van den Berg||2/4/13 8:40 AM|
On Mon, Feb 4, 2013 at 4:52 PM, Maro <andma...@gmail.com> wrote:
Cool, did you place these on the wiki?
Google groups is a mailinglist with a forum-alike interface.
|Re: [cubieboard] Re: How to build Arch Linux||Floris||2/6/13 3:13 AM|
And one of the problems with that forum interface being enabled, is that this encourages users to treat the mailing list as a forum with threads.
Several people are posting replies without quoting the message they are replying to.
|Re: [cubieboard] Re: How to build Arch Linux||Bastiaan van den Berg||2/6/13 3:42 AM|
On Wed, Feb 6, 2013 at 12:13 PM, Floris Bos <b...@je-eigen-domein.nl> wrote:
Sadly, we can't disable the forumlike view... We mainly need to educate users...
Point them to http://tools.ietf.org/html/rfc1855 etc ;)
|Re: [cubieboard] Re: How to build Arch Linux||Floris||2/6/13 4:27 AM|
Could at least stop advertising it as a forum on the cubie website, and disable posting from the web in the googlegroups settings...
-- Yours sincerely, Floris Bos
|Re: [cubieboard] Re: How to build Arch Linux||Black Stag||2/6/13 6:17 AM|
Shhh we are not allowed to use a mailing list as a mailing list it
must be all things to all people.
> You received this message because you are subscribed to the Google Groups
> "Cubieboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cubieboard+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cubieboard?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
|Re: [cubieboard] Re: How to build Arch Linux||Maro||2/6/13 6:46 AM|
small tip if you want to run java application on your desktop:
|Re: How to build Arch Linux||Connor Irwin||2/15/13 7:12 PM|
So I got everything up and running thanks to your tutorial. However I have one problem. I can't update my system using pacman -Syu or pacman -Syyu. When I try to I get the following error message at the end of the update process.\
error: failed to commit transaction (conflicting files)
bash: /usr/bin/bash exists in filesystem
bash: /usr/bin/bashbug exists in filesystem
file: /usr/share/file/misc/magic.mgc exists in filesystem
Errors occurred, no packages were upgraded.
|Re: How to build Arch Linux||Connor Irwin||2/15/13 8:56 PM|
Another issue that I am having is that Arch is only detecting 307mb of usable ram. I have the 1Gb model and raspbian showed me an available 800mb. Is this something that can be fixed or would I have to try a different image such as debian?
|Re: [cubieboard] Re: How to build Arch Linux||George Ioakimedes||2/16/13 7:32 AM|
are you sure you downloaded the correct hardware pack, there is 1 for 512MB and a different one for the 1GB board?
|Re: [cubieboard] Re: How to build Arch Linux||Connor Irwin||2/16/13 12:44 PM|
ah crap I have the wrong one. Thanks though
|Re: How to build Arch Linux||Brian||2/17/13 3:33 PM|
|Re: [cubieboard] Re: How to build Arch Linux||Bastiaan van den Berg||2/18/13 1:38 AM|
|Re: [cubieboard] Re: How to build Arch Linux||Marcos Martinez Garcia||2/18/13 2:18 AM|
Yep, with gmail it sorts fine the threads
Enviado desde mi iPhone
|Re: How to build Arch Linux||TimeBreaker||2/18/13 7:19 AM|
i'm very new in cubieboard,and I have a question in understanding the process of build arch img for cubieboard...
Is is that where is the path /media/andrea/boot from?Is it the mount point of the mmc?or it is just a common file created handly?
|Re: [cubieboard] Re: How to build Arch Linux||George Ioakimedes||2/18/13 9:05 AM|
/media/andrea/boot is the mounting point of the SD Card first partition. It WILL be a different name on your machine depending on how the card is mounted.
If you issue a mount command it will list the mouted devices and where they are mounted (i.e. /dev/sdc1 -->/media/ boot
On Mon, Feb 18, 2013 at 7:19 AM, TimeBreaker <slack...@gmail.com> wrote:
|Re: [cubieboard] Re: How to build Arch Linux||Lluís Forns Puigmartí||2/18/13 3:54 PM|
I download the cubieboard_hwpack.tar.xz file, which should be for de 1Gb version, but I only have 307mb of ram; what am I missing?
2013/2/18 George Ioakimedes <georg...@gmail.com>
*Ser freak no és imprescindible per ser informàtic, però ajuda.
*La vida no ha de ser feliç, ha de ser plena.
*Abans d'imprimir aquest missatge, pensa en el medi ambient.
|Re: [cubieboard] Re: How to build Arch Linux||Lluís Forns Puigmartí||2/19/13 6:18 AM|
I answer myself, I didn't update the bootloader from the './hwpack/bootloader':
# dd if=sunxi-spl.bin of=/dev/sde bs=1024 seek=8
# dd if=u-boot.bin of=/dev/sde bs=1024 seek=32
hope it will be useful to somebody.
2013/2/19 Lluís Forns <enb...@gmail.com>
|Re: [cubieboard] Re: How to build Arch Linux||John B.||3/17/13 2:09 PM|
On Sunday, February 3, 2013 7:17:49 PM UTC-5, Bastiaan van den Berg wrote:
Does that mean this process should work on the Hackberry A10 as well? Because I tried getting it to boot Maro's image with the UBOOT from the Miniand Forum  and failed to get it to work.
Somebody built a headless Arch Linux image for the Hackberry , but I'd love to be able to get screen output.
I'm new to the ARM world, so apologies if this is an incredibly dumb question.
|Re: [cubieboard] Re: How to build Arch Linux||Maro||3/20/13 7:23 AM|
I think not due to the incompatible hardware of the Hackberry (the have the same processor only), i will suggest to try to install fedora arm version.
This i very nice and powerfull version of fedora and i use it since i found it.
It should work for any allwirnner board and the installation process is very simple (if in ubuntu the command for select and install your board don't work use bash before the command)
|Re: How to build Arch Linux||Lim Benjamin||4/4/13 11:38 PM|
The current kernel Im using now does not have modules for iptables, uvcvideo.
I tried using modprobe and insmod to load the modules, there was no error message, but when i did modinfo, I found out the modules were not loaded.
I was hoping to use Roman's kernel since most of the modules are already loaded but couldnt install it as it was a .deb file with no BUILDPKG.
Would appreciate some help to either load the modules or a precompiled kernel with the modules already present.
|Re: [cubieboard] Re: How to build Arch Linux||Roman Mamedov||4/5/13 12:55 AM|
On Thu, 4 Apr 2013 23:38:44 -0700 (PDT)uImage is already distributed separately from the .deb, and from inside
the .deb itself you only need the "/lib/modules/" directory, you can unpack it
and manually place into your system.
|Re: [cubieboard] Re: How to build Arch Linux||Roel||4/5/13 7:02 AM|
I just want to mention You can't just copy the rootfs directory from the hardware pack to arch rootfs.
The modules file in the rootfs should be moved to /etc/modules-load.d/cubieboard.conf
the modules itself shoud be copied to /usr/lib
Do a lsmod after boot to check if the modules are loaded.
|Re: [cubieboard] Re: How to build Arch Linux||Lim Benjamin||4/5/13 7:06 AM|
Thanks for all your help. I'm currently a little tied up and have not tried it out yet.
I will post back with the results probably tomorrow once I have got down to it.
|Re: [cubieboard] Re: How to build Arch Linux||Lim Benjamin||4/5/13 6:27 PM|
I have loaded Roman's 3.0.62-rm1-rm2 kernel on the cubieboard running arch arm. The steps are as what Roman and Roel have described.
1. unpack the .deb file and copy the contents of /lib/modules into usr/lib/modules on your arch fs.
2. mount mmcblk0p1 on your arch and replace uImage with the downloaded copy(Backup the old image just in case)
3. Comment out the entire /etc/modules-load.d/cubieboard.conf file.
This will boot into the kernel without any modules loaded. Once successfully booted, run a 'uname -r' to check that new kernel is booted. Do a 'depmod -a' to resolve all dependency issues. You can now load modules required using 'modprobe MODULENAME'
Note: cubieboard.conf contains the modules that you want to load at boot. I couldnt find the file to replace cubieboard.conf that Roel mentioned so I commented out the entire file. Some errors might happen if you do not because your arch might try to load some modules from your old kernel that is not present in your new kernel.
Another thing I tried was to extract only certain .ko modules that I wanted and load them on my current kernel. This will not work because modules are tied to certain kernels only. Run 'modinfo MODULENAME' and see 'vermagic: 3.0.62-r1-rm2 mod_unload modversions ARMv7' , so this module will only work on that particular version. You cannot mix and match modules from various kernels.
Thanks to Roman and Roel for their help