Minimal 64bit ARM RootFS for Debian and Ubuntu
#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.


Messages In This Thread
RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - by patrickhwood - 02-13-2016, 09:51 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)