From 380f0fe40b1ab20790e75dac779e73667cc5ac72 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 4 Feb 2023 14:10:26 +0000 Subject: Update all content to new pygmentize --- md/writeup/devices/samsung_xe303c12.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'md/writeup/devices') diff --git a/md/writeup/devices/samsung_xe303c12.md b/md/writeup/devices/samsung_xe303c12.md index 12d260e..c61147c 100644 --- a/md/writeup/devices/samsung_xe303c12.md +++ b/md/writeup/devices/samsung_xe303c12.md @@ -41,7 +41,7 @@ you boot, or wait 30 seconds to continue booting. 2. Type shell to get into a bash shell. 3. Type sudo su to become root. 4. Then type this to enable USB booting: -``` +```text crossystem dev_boot_usb=1 dev_boot_signed_only=0 ``` 5. Reboot the system to allow the change to take effect. @@ -52,11 +52,11 @@ These instructions are written for installing to a USB drive with the sda device 1. Get a root shell as described in the previous section. 2. Since ChromeOS will automatically mount any partitions it finds, unmount everything now: -``` +```sh umount /dev/sda* ``` 3. Start fdisk to create a GPT partition table: -``` +```sh fdisk /dev/sda ``` 4. At the fdisk prompt: @@ -64,12 +64,12 @@ fdisk /dev/sda 4.2. Write the partition table and exit by typing w. 5. Partition the micro SD card: -``` +```sh cgpt create /dev/sda cgpt add -i 1 -t kernel -b 8192 -s 32768 -l Kernel -S 1 -T 5 -P 10 /dev/sda ``` 6. To create the rootfs partition, we first need to calculate how big to make the partition using information from cgpt show. Look for the number under the start column for Sec GPT table which is 15633375 in this example: -``` +```text localhost / # cgpt show /dev/sda start size part contents 0 1 PMBR @@ -83,19 +83,19 @@ cgpt add -i 1 -t kernel -b 8192 -s 32768 -l Kernel -S 1 -T 5 -P 10 /dev/sda 15633407 1 Sec GPT header ``` 7. Replace the xxxxx string in the following command with that number to create the root partition: -``` +```sh cgpt add -i 2 -t data -b 40960 -s `expr xxxxx - 40960` -l Root /dev/sda ``` 8. Tell the system to refresh what it knows about the disk partitions: -``` +```sh sfdisk -R /dev/sda ``` 9. Format the root partition: -``` +```sh mkfs.ext4 /dev/sda2 ``` 10. Download and extract rootfs tarball: -``` +```sh cd /tmp wget http://archlinuxarm.org/os/ArchLinuxARM-peach-latest.tar.gz mkdir root @@ -103,18 +103,18 @@ mount /dev/sda2 root tar -xf ArchLinuxARM-peach-latest.tar.gz -C root ``` 11. Flash the kernel to the kernel partition: -``` +```sh dd if=root/boot/vmlinux.kpart of=/dev/sda1 ``` 12. Unmount the root partition: -``` +```sh umount root sync ``` 13. Reboot the computer. 14. At the splash screen, instead of pressing Ctrl-D to go to CromeOS, press Ctrl-U to boot to the external drive. 15. After logging in as root (password is "root"), you can connect to a wireless network by running: -``` +```sh wifi-menu ``` -- cgit v1.2.3