2021-06-30 18:22:58 +01:00
|
|
|
APMdisk: kernel.elf bootinfo.txt kpartx.sh
|
2021-06-30 18:25:38 +01:00
|
|
|
dd bs=8M count=2 if=/dev/zero of=APMdisk
|
|
|
|
parted APMdisk --script mklabel mac mkpart primary hfs+ 32.8KB 100%
|
|
|
|
sudo chmod +x kpartx.sh
|
|
|
|
sudo ./kpartx.bash
|
|
|
|
sudo mkdir /mnt/ppc
|
|
|
|
sudo mkdir /mnt/boot
|
|
|
|
sudo cp bootinfo.txt /mnt/ppc
|
|
|
|
sudo cp kernel.elf /mnt/boot
|
|
|
|
sudo umount /mnt/
|
|
|
|
sudo kpartx -d APMdisk
|
2021-06-30 18:18:29 +01:00
|
|
|
|
|
|
|
kernel.elf: boot.elf
|
2021-06-30 18:25:38 +01:00
|
|
|
powerpc-linux-gnu-ld -Ttext=0x200000 boot.elf -o kernel.elf
|
2021-06-30 18:18:29 +01:00
|
|
|
boot.elf:
|
2021-06-30 18:25:38 +01:00
|
|
|
powerpc-linux-gnu-gcc -c boot.S -o boot.elf
|
2021-06-30 18:18:29 +01:00
|
|
|
clear:
|
2021-06-30 18:25:38 +01:00
|
|
|
rm APMdisk *elf
|
2021-06-30 18:18:29 +01:00
|
|
|
clean:
|
2021-06-30 18:25:38 +01:00
|
|
|
rm APMdisk *elf
|