Minimal 64bit ARM RootFS for Debian and Ubuntu
#1
Hi,

I've prepared two tar archives containing a minimal 64bit ARM root filesystem for Debian Jessie (login: debian, passwd: 111111) and Ubuntu Trusty (login ubuntu, passwd: 111111). You can find the scripts for creating the root filesystems and some additional information about the tar archives here. Once the kernel image / modules and the boot loader are available for the PINE64, I'll try to build a complete image.

Cheers
Uli
#2
Salut,
Very kind of you. Can't wait to get the device in my hands Wink
A+
Debcool
Et si je poussais une longue plainte déchirante pudiquement masquée sous la morsure cinglante de mon humour ravageur! Pierre Desproge
#3
(01-03-2016, 01:58 AM)umiddelb Wrote: Hi,

I've prepared two tar archives containing a minimal 64bit ARM root filesystem for Debian Jessie (login: debian, passwd: 111111) and Ubuntu Trusty (login ubuntu, passwd: 111111). You can find the scripts for creating the root filesystems and some additional information about the tar archives here. Once the kernel image / modules and the boot loader are available for the PINE64, I'll try to build a complete image.

Cheers
Uli

Cool and thanks :-)
#4
The Archlinux ARM community provided generic rootfs for arm64 runs on the pine64 as well.
#5
(02-12-2016, 05:32 PM)umiddelb Wrote: The Archlinux ARM community provided generic rootfs for arm64 runs on the pine64 as well.

This porting already going on by Sunxi and hopefully release on this week. Stays tune.
#6
(02-12-2016, 05:32 PM)umiddelb Wrote: The Archlinux ARM community provided generic rootfs for arm64 runs on the pine64 as well.

And it evens runs Docker ...


Code:
[root@alarm docker]# docker info
DEBU[2641] Calling GET /v1.22/info
DEBU[2641] GET /v1.22/info
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: 1.10.1
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: null host bridge
Kernel Version: 4.5.0-rc1+
Operating System: Arch Linux ARM
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 780.2 MiB
Name: alarm
ID: W3UG:DDAD:5PSR:FECO:X7CN:QCR5:EBAH:RA76:6JOJ:IVI3:MMQW:LCWN
Debug mode (server): true
File Descriptors: 14
Goroutines: 27
System Time: 2016-02-05T17:00:08.85349Z
EventsListeners: 0
Init SHA1: 14d42f7cde8f432216a470821fd5fffb5cfa549b
Init Path: /usr/lib/docker/dockerinit
Docker Root Dir: /var/lib/docker
#7
Nice. I assume this is with the 4.4.0 kernel?

I tried to boot this with the android kernel, but it doesn't want to start a getty on ttyS0. I haven't worked with systemd before (one of the reasons I'm dreading the upcoming ubuntu LTS release), but I followed the instructions on the Archlinux site to enable it and set the right baud rate. I get a message that it's attempting to start the getty, but no login prompt:

[ *** ] A start job is running for dev-ttyS0.device (15s / 1min 30s)

Eventually, it times out:

[ TIME ] Timed out waiting for device dev-ttyS0.device.
[DEPEND] Dependency failed for Serial Getty on ttyS0.
#8
(02-13-2016, 11:45 AM)patrickhwood Wrote: Nice. I assume this is with the 4.4.0 kernel?

I tried to boot this with the android kernel, but it doesn't want to start a getty on ttyS0. I haven't worked with systemd before (one of the reasons I'm dreading the upcoming ubuntu LTS release), but I followed the instructions on the Archlinux site to enable it and set the right baud rate. I get a message that it's attempting to start the getty, but no login prompt:

[ ***  ] A start job is running for dev-ttyS0.device (15s / 1min 30s)

Eventually, it times out:

[ TIME ] Timed out waiting for device dev-ttyS0.device.
[DEPEND] Dependency failed for Serial Getty on ttyS0.

I use this base image and added Arch on an additional partition. This base image comes with the 4.4 kernel. I've updated the kernel to 4.5 but kept the 4.4 dtb. To activate the serial console on Arch, I've simply added
Code:
c0:2345:respawn:/sbin/agetty 115200 ttyS0 linux
to /etc/inittab.

For Ubuntu, please add
Code:
T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100
to /etc/inittab

How did you build the android kernel?
#9
Are you using the latest aarch64 rootfs? SysV init isn't supported out of the box in that -- systemd is the default init system. Also, ubuntu hasn't used /etc/inittab for quite a while. i enabled getty on ttyS0 with this script in /etc/init/ttyS0.conf:

start on runlevel [2345]
respawn
script
exec /sbin/getty -8 -a root 115200 ttyS0
end script
#10
(02-13-2016, 05:12 PM)umiddelb Wrote: How did you build the android kernel?

I didn't build it; I pulled the android boot image from partition 6 and used abootimg to replace the ramdisk with one containing busybox and this in /init:

Code:
#!/bin/sh +x
# mount local virtual fs
mount -t proc proc /proc
mount -t devtmpfs dev /dev

mount /dev/mmcblk0p1 /root

# mount /dev in new rootfs, cause we'll need one
mount -t devtmpfs dev /root/dev

exec chroot /root /sbin/init

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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Arch, Debian or other for Pinebook? cootcraig 3 6,977 05-01-2019, 09:11 AM
Last Post: cootcraig
  Pine64: Minimal SDL config Max11 3 6,610 01-04-2019, 03:47 PM
Last Post: Max11
  Issues with both Deb and Ubuntu germanshep 0 2,749 08-28-2018, 05:47 PM
Last Post: germanshep
  Help debug my pine64A+ ubuntu/plex hangs XaRz 8 11,233 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 10,589 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 18,465 02-03-2017, 05:50 AM
Last Post: pfeerick
Question Ultrawide Display for Ubuntu Mate DE dudeytsang 1 5,413 01-01-2017, 07:26 AM
Last Post: CaptainZalo
  Pine64+Ubuntu+Tvheadend+DVBT Dongle Shai 3 7,008 10-03-2016, 04:23 AM
Last Post: Shai
  Dmesg output Ubuntu Mate S265 1 3,929 10-02-2016, 07:28 AM
Last Post: MarkHaysHarris777
  mounting rootfs Shai 1 3,492 10-01-2016, 07:59 AM
Last Post: waldo

Forum Jump:


Users browsing this thread: 4 Guest(s)