02-13-2016, 09:51 PM
(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.