MK802 and ArchLinux

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

MK802 and ArchLinux

Postby djony » Mon Aug 13, 2012 1:15 pm

Hi.
It is possible to use the install instructions of mele A1000 for MK802?

King Regards
Djon
djony
 
Posts: 9
Joined: Thu Jul 26, 2012 4:51 pm

Re: MK802 and ArchLinux

Postby WarheadsSE » Mon Aug 13, 2012 2:53 pm

I believe that you will need a different script.bin (that can be easily changed out with uEnv.txt), but you may also need a slightly different u-boot. Also, I might need to give instructions to pre-prepare it to connect to wireless. There is no X11/Xorg installed by default, and even if it were, there are issues with the Xorg integration drivers at the moment.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: MK802 and ArchLinux

Postby djony » Mon Aug 13, 2012 3:15 pm

Can I use script.bin and uImage from another linux like one from miniand? I have got an usb-lan-adapter (mcs7830), so I don't need wireless connection.
djony
 
Posts: 9
Joined: Thu Jul 26, 2012 4:51 pm

Re: MK802 and ArchLinux

Postby WarheadsSE » Mon Aug 13, 2012 3:22 pm

You should, in theory, only need the script.bin. If the USB ethernet adapter comes up as eth0 out of the box, it should pop right up on ssh.

uImage != u-boot though.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: MK802 and ArchLinux

Postby djony » Mon Aug 13, 2012 3:33 pm

Are driver for MCS7830 already included? I will try now to copy script.bin from miniand-release.
djony
 
Posts: 9
Joined: Thu Jul 26, 2012 4:51 pm

Re: MK802 and ArchLinux

Postby WarheadsSE » Mon Aug 13, 2012 3:45 pm

Checked the config on github.

CONFIG_USB_NET_MCS7830=m
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: MK802 and ArchLinux

Postby djony » Mon Aug 13, 2012 3:50 pm

usb-lan-adapter doesn't work... can you give me instructions to pre-prepare it to connect to wireless? thank you :D

King Regards
Djon
djony
 
Posts: 9
Joined: Thu Jul 26, 2012 4:51 pm

Re: MK802 and ArchLinux

Postby WarheadsSE » Mon Aug 13, 2012 3:59 pm

You'll need to (caveat - I don't have an MK802)
- make the wpa_supplicant configuration (which is platform agnostic)
- add wpa_supplicant call to either rc.local, or appropriate netconfig stuff.
- ensure dhcpcd gets pointed at that interface. I don't know the interface's name.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: MK802 and ArchLinux

Postby badfish » Thu Aug 30, 2012 8:27 pm

I got my MK802 working like this:

1. Download and install a pre-built Ubuntu image (google for it); that got me a working system, so I could be sure that the bootloader, kernel etc were correctly configured.
2. Backup the /lib/modules diectory from the working image
3. Wipe the linux partition, and then install the Arch runtime into it
(http://us.mirror.archlinuxarm.org/os/Ar ... est.tar.gz)
I also installed the netcfg package.
4. Edit the following files to ensure that I could log into the system after it had booted:
/etc/shadow (to set a root password: I just copied this from another machine)
/etc/rc.conf (to load the "net-profiles" daemon)
/etc/conf.d/netcfg (to load a profile named "wlan0")
/etc/network.d/wlan0 (copy /etc/network.d/examples/wireless-wpa and fill in the ESSID and key)
5. Copy back the contents of the Ubuntu /lib/modules directory into /usr/lib/modules

Then the MK802 booted into Arch, using the ubuntu kernel,and I could log in using ssh.
If it doesn't seem to be working, mount the SD card on another machine and have a look at /var/log/boot and /var/log/everything.log to see what is wrong.

The next stage will be to replace the Ubuntu kernel and bootloader with the Arch ones, to see whether I can get them to work.
badfish
 
Posts: 3
Joined: Wed Mar 21, 2012 9:15 pm

Re: MK802 and ArchLinux

Postby vonfritz » Thu Aug 30, 2012 8:44 pm

vonfritz
 
Posts: 3
Joined: Sun Jul 15, 2012 8:02 pm

Next

Return to Allwinner

Who is online

Users browsing this forum: No registered users and 13 guests