How to flash a native Debian system into a set-top box

Time: 2017-05-22Source: Huajun News NetworkAuthor: GiuliaQ

Although the Debian system is rarely used in China, it is a very popular Linux system abroad. In fact, Debian has a wide range of uses. As long as the configuration is passed, users can even flash the Debian system on the set-top box. So how to flash the native Debian system into the set-top box? Let’s take a look.

How to flash a native Debian system into a set-top box

Here are the steps:

Part one:

Enter the default Android system, use ttl, use the root account to directly mount the nanda partition, and obtain the script.bin in it. If you don't have a ttl line, you can first try to use adb to connect to the box, and then use root master to obtain root permissions. Then follow the sequence: first connect the box to Wifi, then adb connect IPADDRESS, root. In short, just to get script.bin.

1. Get script.bin method:

# mkdir /sdcard/nanda

# mount -t vfat /dev/block/nanda /sdcard/nanda

#exit

# adb pull /sdcard/nanda/script.bin

2. After obtaining script.bin, if you want to modify the nodes in it, you need sunxi-tools:

# git clone https://github.com/linux-sunxi/sunxi-tools

# make

. /bin2fex script.bin script.fex

3. Edit the fex file. After editing, regenerate the binary file:

. /fex2bin script.fex script.bin

The script.bin file is the binary implementation of the fex file. The fex file defines how the SoC works. It configures the GPIO pins and sets parameters such as DRAM, display (such as HDMI, VGA, resolution), etc.

Related articles更多>>