Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0) for initramfs: go run buildimage.go -u '-build=bb -files '/home/brandonjakobson/linux/arch/x86/boot/bzImage''
- 1) within Gparted: deleted /dev/sdb1 (my usb stick)
- 2) within Gparted: made new fat32 partition and set it up
- 3) downloaded syslinux 6.0.4
- 4) sudo apt-get install mtools
- 5) sudo apt-get install libc6-i386
- 6) within /Downloads/syslinux-6.03/bios/linux: sudo ./syslinux -i /dev/sdb1
- 7) within my USB stick: drag and drop these files from syslinux: libcom32.c32, libutil.c32, syslinux.cfg, vesamenu.c32
- 8) within /Downloads/syslinux-6.03/bios/mbr: sudo dd bs=440 count=1 conv=notrunc if=mbr.bin of=/dev/sdb ; sudo parted /dev/sdb set 1 boot on
- 9) take bzImage and initramfs and place in new folder inside USB called "boot"
- WHAT'S INSIDE SYSLINUX.CFG:
- UI vesamenu.c32
- PROMPT 0
- TIMEOUT 300
- MENU TITLE Brandon Jakobson
- MENU WIDTH 72
- MENU MARGIN 10
- MENU ROWS 15
- MENU VSHIFT 3
- MENU HSHIIFT 6
- LABEL webboot
- KERNEL /boot/bzImage
- APPEND ro root=/dev/sda1 initrd=/boot/initramfs.linux_amd64.cpio memmap=4G!4G
- console=ttyS0 console=tty0
- To run:
- sudo apt-get install qemu
- sudo qemu-system-x86_64 -hda /dev/sdx (replace x with the letter of the usb stick, such as /sdb)
Add Comment
Please, Sign In to add comment