thalib.in

thalib.in

Sharing Knowledge

How to Extract Android boot.img

- Unlike system.img boot.img is not a filesystem image. It is read by the bootloader, and contains a kernel image and a tiny ramdisk image. boot.img is created using mkbootimg tool, and unpacked using unmkbootimg, these tools are part of Android source, but you can download these tools from this git https://github.com/pbatard/bootimg-tools Download the source and execute the make file to compile the tools Extracting/Unpacking boot.img: unmkbootimg command usage $ . Read More


Programming Linux from Uboot

- Short guide, from my very old notes on how to Configuring U-Boot for various Linux deployments Flashing U-Boot from U-Boot The flash range is from 0xE8000000 to 0xEFFFFFFF: 128MB. already a workable U-Boot programmed in the Flash: =>tftp 1000000 u-boot.bin =>protect off all =>erase eff80000 efffffff =>cp.b 1000000 eff80000 $filesize Then reset the board to boot it up. Configuring U-Boot for RAM boot deployment =>setenv ipaddr <board_ipaddress> =>setenv serverip <tftp_serverip> =>setenv gatewayip <your_gatewayip> =>setenv bootargs root=/dev/ram rw console=ttyS0,115200 =>saveenv =>tftp 1000000 uImage =>tftp 2000000 rootfs. Read More


Using BDI 2000 for embedded development

- content {:toc} Short guide, from my very old notes on how to use BDI2000 Download the BDI setup utility from their ftp Check whether configuration file is correct. Check whether the network cable is properly connected. BDI Setup [root@localhost tmp]# bdisetup -u -p/dev/ttyS0 -b115 -aGDB -tMPC8500 Connecting to BDI loader Erasing CPLD Programming firmware with ./b20pq3gd.102 Erasing firmware flash .... Erasing firmware flash passed Programming firmware flash . Read More