Minimal 64bit ARM RootFS for Debian and Ubuntu
#11
(02-13-2016, 09:51 PM)patrickhwood Wrote: I supposed I could have modified uboot's environment or script.bin to change the root= setting in the kernel's args, but that would have entailed mucking around with allwinner's uboot, and I'd prefer to spend my time elsewhere.

I'm using apritzel's image, he found a workaround for loading a custom environment into allwinners u-boot. The mainline kernel lacks of support for USB, WiFi and Ethernet at this time. I assume the android 3.10 kernel supports it, but without the kernel sources (the BSP sources seem to be broken), the 3.10 kernel binary is totally worthless.

(02-13-2016, 07:25 PM)patrickhwood Wrote: Are you using the latest aarch64 rootfs?  SysV init isn't supported out of the box in that -- systemd is the default init system.
I used the latest Archlinux aarch64 rootfs. The Arch people are smart enough to include a compatibility package for systemd.

(02-13-2016, 07:25 PM)patrickhwood Wrote:  Also, ubuntu hasn't used /etc/inittab for quite a while.  i enabled getty on ttyS0 with this script in /etc/init/ttyS0.conf:
You're totally right, this refers to Debian. Ubuntu for aarch64 still has some issues, see here.
  Reply
#12
Hi, im at the same point as patrick... I used a custom ramdisk, almost the same as his... I boot a debootstrapped debian jessie with no selinux (hexedited sdX5 as it is bootargs partition and i am using android sd partition layout...)
I'll try to make some time and copy android kernel modules, add the getty line (last night i was booting for the first time and got the systemd getty timeout), so i can have a test machine just in case we need to get some compiling done...
  Reply
#13
You guys really should check out http://forum.pine64.org/showthread.php?tid=293 and build the stuff from source. It is pretty much useless to boot the blob android Kernel with Linux when you can compile it as you need it.
  Reply
#14
About C2's umiddelb note about uboot countdown to 0 very fast, i had the same issue on pine so i had to edit the bootargs partition...
Strange enough, when edited to enforcing=0 the counter was again visible..
Weird...
  Reply
#15
Ethernet (100Mb) and USB are working. Haven't tried wifi yet. HDMI isn't cooperating, even with the disp and hdmi modules loaded.

I've had no problems bringing up Trusty, but I started with an ARM64 rootfs umiddelb listed here: https://github.com/umiddelb/z2d/tree/master/pine64
  Reply
#16
Strange... I tried to install selinux to avoid editing partitions and gives an error for unmet dependencies 😐
Hdmi module seems not to load also to me, ill try later when beasts go to bed
  Reply
#17
(02-14-2016, 01:00 PM)drag00n Wrote: Strange... I tried to install selinux to avoid editing partitions and gives an error for unmet dependencies ?
Hdmi module seems not to load also to me, ill try later when beasts go to bed

For ubuntu 14.04, I had to install selinux-utils, selinux-policy-dummy, and selinux-policy-default; then set up targeted policy 29; and eventually I just put "setenforce 0" in an init startup file (I put it in /etc/init/mountall.conf) to solve context issues with login.  Selinux is a royal pain....
  Reply
#18
Thats the point...
Code:
root@topine:~# apt-get install selinux-policy-default
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package selinux-policy-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'selinux-policy-default' has no installation candidate

And taking a look, the offending package is:


Code:
root@topine:~# apt-get install policycoreutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 policycoreutils : Depends: libsemanage1 (>= 2.4) but 2.3-1+b2 is to be installed
E: Unable to correct problems, you have held broken packages.


Maybe I'll compile from source as longsleep says... perhaps it's easier and the fastest path given the fact that now I have a working linux aarch64 box.

I totally agree, SELinux is a PITA.

Regards, drag00n
  Reply
#19
Do you need to do an apt-get update?
  Reply
#20
Nope, that is right after an update
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Arch, Debian or other for Pinebook? cootcraig 3 2,036 05-01-2019, 09:11 AM
Last Post: cootcraig
  Pine64: Minimal SDL config Max11 3 2,349 01-04-2019, 03:47 PM
Last Post: Max11
  Issues with both Deb and Ubuntu germanshep 0 1,092 08-28-2018, 05:47 PM
Last Post: germanshep
  Help debug my pine64A+ ubuntu/plex hangs XaRz 8 3,578 11-02-2017, 06:34 AM
Last Post: XaRz
  Ubuntu 16.04 cannot resolve dns - connection timed out; no servers could be reached marcosti 2 7,068 03-01-2017, 02:46 PM
Last Post: dkryder
  Pine64 will be supported by HypriotOS (a Debian Jessie based OS for running Docker) Quintus23M 9 10,618 02-03-2017, 05:50 AM
Last Post: pfeerick
Question Ultrawide Display for Ubuntu Mate DE dudeytsang 1 2,797 01-01-2017, 07:26 AM
Last Post: CaptainZalo
  Pine64+Ubuntu+Tvheadend+DVBT Dongle Shai 3 2,985 10-03-2016, 04:23 AM
Last Post: Shai
  Dmesg output Ubuntu Mate S265 1 1,587 10-02-2016, 07:28 AM
Last Post: MarkHaysHarris777
  mounting rootfs Shai 1 1,251 10-01-2016, 07:59 AM
Last Post: waldo

Forum Jump:


Users browsing this thread: 1 Guest(s)