ArchLinux ARM for CubieTruck : any ideas ?

This forum is for supported devices using an ARMv7 Allwinner SoC.

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby moscar » Thu Dec 05, 2013 6:45 pm

I just booted a kernel build from the PKGBUILD provided by issue. As far as I can tell, everything (I use) works fine. I have to manually load sunxi_gmac (or put it in /etc/modules-load.d/) in order to get ethernet, but I also did that before.
moscar
 
Posts: 24
Joined: Wed Nov 20, 2013 6:18 pm

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby issue » Fri Dec 06, 2013 10:16 am

Wifi is broken in the PKGBUILD i provided (forgot to change paths for the firmware).
Ad merging with sun7i: If they include sunxi_gmac and bcmdhd there should not be much difference. I basically took the sun7i PKGBUILD and changed the .config

@maribu: I created my sdcard with the sunxi-media-create.sh script (using my hwpack and the latest arch rootfs). Then booted of that SD-Card, removed linux-sun7i, mount /dev/mmcblk0p1 to /boot and install the kernel package. script.bin should be included in the hwpack, will upload uEnv.txt later
issue
 
Posts: 5
Joined: Fri Nov 29, 2013 7:43 pm

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby maribu » Fri Dec 06, 2013 5:00 pm

Hi, issue!

Thanks. With the script it worked out of the box. I had a short look at the script and think these lines are pretty interesting:

$this->bbcode_second_pass_code('', '
copyUboot ()
{
dd if=$2 bs=1024 of=$1 seek=40
}
')
and here it is called:
$this->bbcode_second_pass_code('', 'copyUboot $1 $HWPACKDIR/bootloader/u-boot.img')

So I guess I have to use "u-boot.img" instead of "u-boot.bin" and use the parameter "seek=40" instead of "seek=32".

Regards,
maribu
maribu
 
Posts: 33
Joined: Wed Nov 23, 2011 12:39 pm

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby moscar » Sat Dec 07, 2013 2:04 pm

@maribu

It depends on the u-boot version: http://linux-sunxi.org/Bootable_SD_card#Bootloader
moscar
 
Posts: 24
Joined: Wed Nov 20, 2013 6:18 pm

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby gamberuga » Sun Dec 15, 2013 9:12 am

Hi All,

I'm really becoming crazy with my new CubieTruck :roll: and I'm looking for help (I'm sorry for my bad English).
I have followed the standard procedure linked on Arch Linux site (http://archlinuxarm.org/platforms/armv7 ... bieboard-2) and the CT boots but the ethernet doesn't work.
Would someone be so very kind to explain me, step by step, how I have to modify the filesystem and get a working CT. :D

Many Thanks
Andrea
gamberuga
 
Posts: 2
Joined: Mon Dec 09, 2013 6:44 am

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby WarheadsSE » Sun Dec 15, 2013 3:02 pm

Kindly,

Read the thread you are posting in.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby moin » Sun Dec 15, 2013 3:21 pm

Hi Andrea,

according to a post of "issue" (don't know, if it's the same as above) at cubieforums (http://www.cubieforums.com/index.php/topic,1107.0.html?PHPSESSID=doh6d0e92pkppcohqkcefhdm75) you just have to download:

- ct.tar.xz from https://www.dropbox.com/sh/k1f565ahsi0vjhh/m69wRBJkCl
- the latest archarm image for the a20 chip: http://archlinuxarm.org/os/ArchLinuxARM-sun7i-latest.tar.gz
- a script to write the data to a micro-sd card https://github.com/linux-sunxi/sunxi-bsp/blob/master/scripts/sunxi-media-create.sh

then use it like this: $this->bbcode_second_pass_code('', './sunxi-media-create.sh /dev/sdx ct.tar.xz ArchLinuxARM-sun7i-latest.tar.gz')
to create a bootable sd card.

when arch is booted use $this->bbcode_second_pass_code('', 'modprobe sunxi-gmac') to load the module for the ethernet controller.
works nice for me.
moin
 
Posts: 2
Joined: Sun Dec 15, 2013 2:36 pm

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby gamberuga » Mon Dec 16, 2013 6:42 am

Hi moin,

many thanks for your support ... I will try your advise.

Best Regards,
Andrea
gamberuga
 
Posts: 2
Joined: Mon Dec 09, 2013 6:44 am

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby kido » Wed Dec 18, 2013 11:30 am

What is the right path for the wifi firmware?
On lubuntu it's "/lib/firmware/ap6210/" , but i can't find in there in Arch.

BTW, there's no nand in lsblk, I've diffed our kernel config and lubuntu's - our missing this:
$this->bbcode_second_pass_code('', '
CONFIG_SUNXI_NAND=y
CONFIG_SUNXI_NAND_COMPAT_DEV=y')
I'll try building kernel with this options later.
kido
 
Posts: 2
Joined: Wed Dec 18, 2013 11:24 am

Re: ArchLinux ARM for CubieTruck : any ideas ?

Postby maribu » Mon Dec 30, 2013 7:31 pm

Hi, there!

I've made a new kernel package based on the linux-sun7i in AUR.

This works:
- ethernet (module sunxi_gmac needs to be loaded)
- sound (in kernel)
- mali (modules disp_ump, ump, mali_drm, mali need to be loaded)
- cedar (media decode/encode acceleration, module "sunxi_cedar_mod" needs to be loaded)
- nand (in kernel) (both mounting and lsblk works ;-) )

And this does not:
- wireless / bluetooth (module bcmdhd is compiled and firmware is provided via second package, but the module doesn't load properly)

The second package (bcmdhd-fw) contains the firmware for the bcmdhd module. (I simply compressed the modules from my linaro installation.) Sadly, the bcmdhd driver does not work. But if someone wants to take a deeper look why the wifi doesn't this package might be of use.

By the way: This kernel package is much smaller (and faster to compile) then linux-sunxi (less modules are selected) and uses https://github.com/sunxi/linux-sunxi as source, not https://github.com/cubieboard2/linux-sunxi.

Regards,
maribu
Attachments
bcmdhd-fw-0.1-1.src.tar.gz
Firmware for bcmdhd driver
(168.47 KiB) Downloaded 1242 times
linux-sun7i-3.4.67-1.src.tar.gz
PKGBUILD for linux-sun7i
(24.74 KiB) Downloaded 1441 times
maribu
 
Posts: 33
Joined: Wed Nov 23, 2011 12:39 pm

PreviousNext

Return to Allwinner

Who is online

Users browsing this forum: No registered users and 3 guests