Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | None | 0 0
  1. (cloned pmbootstrap earlier)
  2. pmbootstrap zap
  3. pmbootstrap init
  4. pmbootstrap initfs hook_add debug-shell
  5. pmbootstrap export
  6. (cloned linux-next earlier)
  7. (added device branch earlier)
  8. (tried out envkernel.sh earlier, works fine)
  9. (already added dts files to linux-next and commited)
  10. (I didn't change the model and compatible strings
  11. since the dts works anyways on the FrankenKernel)
  12. (I want to see what happens with the current dts, not the minimal one)
  13. (modified makefile earlier)
  14.  
  15. //while in Linux directory
  16. source ../pmbootstrap/helpers/envkernel.sh
  17. make qcom_defconfig
  18. (I compiled the kernel earlier and I'm sadly impatient)
  19. pmbootstrap chroot -- apk add abootimg android-tools mkbootimg dtbtool
  20. NOTE: "WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory"
  21.  
  22. export DEVICE="$(pmbootstrap config device)"
  23. export WORK="$(pmbootstrap config work)"
  24. export TEMP="$WORK/chroot_native/tmp/mainline/"
  25. mkdir -p "$TEMP"
  26.  
  27. cd .output/arch/arm/boot/
  28. cat zImage dts/qcom-msm7227a-samsung-kylessopen.dtb > ../../../../.zImage-dtb
  29. cd ../../../../
  30. cp .zImage-dtb "$TEMP"/zImage-dtb
  31. cp "/tmp/postmarketOS-export/boot.img-samsung-kylessopen" "$TEMP/boot.img"
  32. pmbootstrap chroot
  33. abootimg -u /tmp/mainline/boot.img  -k /tmp/mainline/zImage-dtb
  34. (the above complained about boot image size)
  35. abootimg -u /tmp/mainline/boot.img  -k /tmp/mainline/zImage-dtb -c "bootsize=12582912" //It seemed like a reasonable number
  36. exit
  37.  
  38. //I put the device in flash mode and connected it
  39. pmbootstrap flasher flash_kernel
  40. ---
  41. sudo dhcpcd enp0s29u1u2u3 --nohook ipv6
  42. telnet 172.16.42.1
  43. uname -a
  44.  
  45. Linux (none) 3.0.101-FrankenKernel #4-postmarketOS PREEMPT Sat Dec 1 18:29:44 UTC 2018 armv7l Linux
  46.  
  47. :(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement