Skip to content

Instantly share code, notes, and snippets.

@takeru
Forked from u-haru/Howto_Update
Created May 20, 2021 16:23
Show Gist options
  • Save takeru/2b9b2389c98e9e4a924ad99b2181b909 to your computer and use it in GitHub Desktop.
Save takeru/2b9b2389c98e9e4a924ad99b2181b909 to your computer and use it in GitHub Desktop.
QuaStation改造用メモ
ブート用
usb start
fatload usb 0 0x01f00000 /android.emmc.dtb
fatload usb 0 0x03000000 /emmc.uImage
b2ndbc
env set bootargs "earlycon=uart8250,mmio32,0x98007800 console=ttyS0,115200n8 initrd=0x02200000,0x7F0000 root=PARTUUID="0444ab2b-01" rw rootwait rootfstype=ext4 init=/sbin/init selinux=0 nmi_watchdog=1 devtmpfs.mount=1"
booti 0x03000000 - 0x01f00000
───────────────────────────────────────────────────────────
EMMCからメモリへの展開
mmc read 展開先アドレス 展開元アドレスのブロック(アドレス/512) ブロック数(サイズ(byte)/512)
mmc read 0x03000000 1512a 4E19 //kernel
mmc read 0x01f00000 3181 6e //dtb
───────────────────────────────────────────────────────────
EMMCから自動起動
env set bootcmd "mmc read 0x03000000 1512a 9000;mmc read 0x01f00000 3181 6d;env set bootargs earlycon=uart8250,mmio32,0x98007800 console=ttyS0,115200n8 initrd=0x02200000,0x7F0000 root=PARTUUID="0444ab2b-01" rw rootwait rootfstype=ext4 init=/sbin/init selinux=0 nmi_watchdog=1 devtmpfs.mount=1;env set bootcmd 'booti 0x03000000 - 0x01f00000';b2ndbc"
USBから自動起動
env set bootcmd "usb start;fatload usb 0 0x01f00000 /rtd-1295-giraffe-2gb-tee.dtb;fatload usb 0 0x03000000 /image;env set bootargs earlycon=uart8250,mmio32,0x98007800 console=ttyS0,115200n8 initrd=0x02200000,0x7F0000 root=PARTUUID="0444ab2b-01" rw rootwait rootfstype=ext4 init=/sbin/init selinux=0 nmi_watchdog=1 devtmpfs.mount=1;env set bootcmd 'booti 0x03000000 - 0x01f00000';b2ndbc"
goru
dd if=/dev/zero of=/dev/block/mmcblk0 seek=86314 bs=512 count=30666 //EMMCのカーネル部分のゼロ埋め
dd if=/dev/zero of=/dev/block/mmcblk0 seek=6488576 bs=1 count=62714 //EMMCのdtb部分のゼロ埋め
dd if=/mnt/usb/Image of=/dev/block/mmcblk0 seek=86314 bs=512 //EMMCへのカーネル書き込み
dd if=/mnt/usb/rtd-1295-giraffe-2gb-tee.dtb of=/dev/block/mmcblk0 seek=6488576 bs=1 //EMMCへのdtb書き込み
https://www.zidoo.tv/Support/downloadList/target/rRwtRFydZ4xKKmVViAFMcQ%3D%3D.html
これをUSBに入れてQuaStationのU-boot画面でgoruコマンドを使えば、Zidooのレスキュー用カーネルが使える
※emmc.uImageをuImageにリネームする
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment