I try to understand the BSP and OpenWRT MP provided by SINOVOIP and MTK.
The first step starts with unpacking the Kernel.
-
Download & Flashing OpenWRT MTK MP4.1 wifi SDK wifi driver for BE14000 Wifi Card to SD
-
Download(git clone) BPI-R4-bsp-5.4
-
Fdisk to see SD Partition and dump(dd) to files
# dd if=/dev/sda1 of=/tmp/sda1_bl2
|
4. Insert SD into BPI-R4 and Upload kernel config, cmdline
Boot to OpenWRT MP4.1
# scp /proc/config.gz
|
5. Build u-boot-mt in BPI-R4-bsp-5.4
./build.sh
|
The fiptool tool will be compiled and placed in the u-boot-mt directory.
6. Try using fiptool to look at the kernel and fip dump files.
fip Partition is a fip format file, and the information is as shown in the figure.
Kernel Partition is not a fip format file.
7. Try using dumpimage to look at the kernel dump file.
8. Extract kernel
9. Look at the config.gz file & find initrd/initramfs
zcat config.gz
|
- Look at the cmdline file
- Summary
a. Kernel no built-in initramfs
b. MTK BE14 driver not in Kernel (as modules in /lib/modules/ )
c. bootargv has pci=pcie_bus_perf
d. Extract the unpacked Linux Kernel
e. Got Kernel config