Install Centos on your arm device

Moderators: odroid, mdrjr

Install Centos on your arm device

Unread postby gt945 » Tue Dec 12, 2017 1:38 pm

Hello all

This is a simple guide to install centos on your arm device
1 you need a linux system on your device. you also need bash, curl, libarchive installed
2 you need rebuild your kernel with CONFIG_SYSVIPC and CONFIG_FHANDLE enabled
3 download scripts from https://github.com/gt945/centos-bootstrap
4 run centos-bootstrap dest_dir, the centos rootfs is in dest_dir after
5 replace rootfs

Be careful when you replace rootfs, the best way is replace it before system boot up

On amlogic device, the boot seq is :
1) boot kernel
2) mount init ramfs as rootfs
3) mount /dev/system to /mnt
4) chroot to mnt
5) /sbin/init

delete or rename /sbin/init, the boot seq will stop at 4), then replace your rootfs in /mnt

6 reboot, the selinux is enabled by default, the first boot is take long time to relabel filesystem

7 have fun with centos.
gt945
 
Posts: 2
Joined: Mon Nov 27, 2017 6:36 pm
languages_spoken: english

Return to Other OS

Who is online

Users browsing this forum: No registered users and 2 guests