bjakobson

syslinux trials

Aug 30th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. 0) for initramfs: go run buildimage.go -u '-build=bb -files '/home/brandonjakobson/linux/arch/x86/boot/bzImage''
  2.  
  3.  
  4. 1) within Gparted: deleted /dev/sdb1 (my usb stick)
  5.  
  6. 2) within Gparted: made new fat32 partition and set it up
  7.  
  8. 3) downloaded syslinux 6.0.4
  9.  
  10. 4) sudo apt-get install mtools
  11.  
  12. 5) sudo apt-get install libc6-i386
  13.  
  14. 6) within /Downloads/syslinux-6.03/bios/linux: sudo ./syslinux -i /dev/sdb1
  15.  
  16. 7) within my USB stick: drag and drop these files from syslinux: libcom32.c32, libutil.c32, syslinux.cfg, vesamenu.c32
  17.  
  18. 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
  19.  
  20. 9) take bzImage and initramfs and place in new folder inside USB called "boot"
  21.  
  22. WHAT'S INSIDE SYSLINUX.CFG:
  23.  
  24. UI vesamenu.c32
  25. PROMPT 0
  26. TIMEOUT 300
  27. MENU TITLE Brandon Jakobson
  28. MENU WIDTH 72
  29. MENU MARGIN 10
  30. MENU ROWS 15
  31. MENU VSHIFT 3
  32. MENU HSHIIFT 6
  33.  
  34.  
  35. LABEL webboot
  36. KERNEL /boot/bzImage
  37. APPEND ro root=/dev/sda1 initrd=/boot/initramfs.linux_amd64.cpio memmap=4G!4G
  38. console=ttyS0 console=tty0
  39. To run:
  40.  
  41. sudo apt-get install qemu
  42.  
  43. 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