Advertisement
Guest User

Untitled

a guest
Aug 25th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.31 KB | Software | 0 0
  1. Fullhan u-boot proprietary crap
  2.  
  3. 'fh_mkimage' - appears to work in 64-bit Ubuntu 22.04 with lib32z1 package installed. Couldn't get working with patchelf.
  4. ------------------------
  5. ldd fh_mkimage
  6.        linux-gate.so.1 (0xf7fb8000)
  7.        libc.so.6 => /lib32/libc.so.6 (0xf7d78000)
  8.        /lib/ld-linux.so.2 (0xf7fba000)
  9. ------------------------
  10. ./fh_mkimage
  11. Usage: ./fh_mkimage -l image
  12.          -l ==> list image header information
  13.       ./fh_mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
  14.          -A ==> set architecture to 'arch'
  15.          -O ==> set operating system to 'os'
  16.          -T ==> set image type to 'type'
  17.          -C ==> set compression type 'comp'
  18.          -a ==> set load address to 'addr' (hex)
  19.          -e ==> set entry point to 'ep' (hex)
  20.          -n ==> set image name to 'name'
  21.          -d ==> use image data from 'datafile'
  22.          -x ==> set XIP (execute in place)
  23.       ./fh_mkimage [-D dtc_options] -f fit-image.its fit-image
  24. ------------------------
  25. From Fullhan u-boot makefile
  26.  
  27. $(obj)u-boot.img:   $(obj)u-boot.bin
  28.         ./fh_mkimage -A $(ARCH) -T firmware -C none \
  29.         -a $(TEXT_BASE) -e 0 \
  30.         -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
  31.             sed -e 's/"[     ]*$$/ for $(BOARD) board"/') \
  32.         -d $< $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement