Skip to content

Commit

Permalink
Use submodule for uimg
Browse files Browse the repository at this point in the history
  • Loading branch information
fesc2000 committed Nov 25, 2021
1 parent bc7dd89 commit 983fd07
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 569 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tools/uimg-tool"]
path = tools/uimg-tool
url = [email protected]:fesc2000/uimg-tool.git
10 changes: 5 additions & 5 deletions README-6591.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ Steps:
If you have an existing update image you want to install, you can extract these bin
files from it using the uimg tool. For example:

make -C src/uimg
make -C tools/uimg-tool
tar xf FRITZ.Box_6591_Cable-07.19-80492-Labor.image ./var/firmware-update.uimg
src/uimg/uimg -u -n part ./var/firmware-update.uimg
tools/uimg-tool/uimg -u -n part ./var/firmware-update.uimg

2. Connect to the ftp client and query the current active partition (unless you already know it):

Expand Down Expand Up @@ -302,9 +302,9 @@ Steps:

1. Unpack the boot image

make -C src/uimg
make -C tools/uimg-tool/uimg
tar xf FRITZ.Box_6591_Cable-07.19-80492-Labor.image ./var/firmware-update.uimg
src/uimg/uimg -u -n part ./var/firmware-update.uimg
tools/uimg-tool/uimg -u -n part ./var/firmware-update.uimg

2. Mount the boot partition

Expand All @@ -325,7 +325,7 @@ Steps:

4. Repack the image

src/uimg/uimg -p -n part out.img
tools/uimg-tool/uimg -p -n part out.img

5. Program the image
You can either program the whole out.img from the shell, or only update
Expand Down
1 change: 1 addition & 0 deletions packages/external/git-nfs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/sahlberg/fuse-nfs
3 changes: 2 additions & 1 deletion packages/external/sha-nfs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
9e3d37f7ba910438bc60b53c330f5562ab3d9de63db03d67d13b3fbe7108e2c3 ../dl/master.tar.gz
3b59c403900605c6bb38588aa4752b4c2919985fe6310ecea5ee472d3f1cdc2a ../dl/8d59a87.tar.gz

1 change: 0 additions & 1 deletion packages/external/url-nfs

This file was deleted.

17 changes: 12 additions & 5 deletions puma7/soc.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
src/uimg/uimg:
@make -C src/uimg
UIMG_DIR = $(REPODIR)/tools/uimg-tool
UIMG = $(UIMG_DIR)/uimg

$(UIMG_DIR)/Makefile:
@git submodule init $(UIMG_DIR)
@git submodule update $(UIMG_DIR)

$(UIMG): $(UIMG_DIR)/Makefile
@make -C $(UIMG_DIR)

# extrace uimg
#
$(PLAT_TMP)/uimage: $(ORIG) src/uimg/uimg
$(PLAT_TMP)/uimage: $(ORIG) $(UIMG)
@mkdir -p $(PLAT_TMP)/uimage
@cd $(PLAT_TMP)/uimage; tar xf $(ORIG)
@cd $(PLAT_TMP)/uimage; $(REPODIR)/src/uimg/uimg -u -n part var/firmware-update.uimg
@cd $(PLAT_TMP)/uimage; $(UIMG) -u -n part var/firmware-update.uimg

# re-pack uimg
#
Expand All @@ -28,7 +35,7 @@ ifeq ($(ENABLE_CONSOLE),1)
@rm -f .startup.nsh
endif
@echo "PACK firmware-update.uimg"
@$(REPODIR)/src/uimg/uimg -p -n $(PLAT_TMP)/uimage/part $(PLAT_TMP)/var/firmware-update.uimg
@$(UIMG) -p -n $(PLAT_TMP)/uimage/part $(PLAT_TMP)/var/firmware-update.uimg
@echo "PACK $(PLAT_TMP)/$(FWFILE)"
@cd $(PLAT_TMP); $(TAR) cf $(RELDIR)/$(FWFILE) var
@echo
Expand Down
1 change: 0 additions & 1 deletion src/uimg/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions src/uimg/Makefile

This file was deleted.

Loading

0 comments on commit 983fd07

Please sign in to comment.