Skip to content
Snippets Groups Projects
Commit 4ff22255 authored by Kenneth Johansson's avatar Kenneth Johansson
Browse files

rename program.

parent eb4d82ab
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
AM_CFLAGS = $(OUR_CFLAGS) AM_CFLAGS = $(OUR_CFLAGS)
bin_PROGRAMS = iop_upgrade bin_PROGRAMS = iopupgrade
iop_upgrade_SOURCES = \ iopupgrade_SOURCES = \
src/main.c \ src/main.c \
src/log.h \ src/log.h \
src/image.c \ src/image.c \
...@@ -22,8 +22,8 @@ iop_upgrade_SOURCES = \ ...@@ -22,8 +22,8 @@ iop_upgrade_SOURCES = \
src/ubi.c \ src/ubi.c \
src/md5sum.c src/md5sum.c
iop_upgrade_LDADD = $(UCI_LIB) $(UBOX_LIB) $(UBUS_LIB) -lm iopupgrade_LDADD = $(UCI_LIB) $(UBOX_LIB) $(UBUS_LIB) -lm
#iop_upgrade_CFLAGS = $(AM_CFLAGS) -DPRG_VERSION=\"$(PRG_VERSION)\" #iopupgrade_CFLAGS = $(AM_CFLAGS) -DPRG_VERSION=\"$(PRG_VERSION)\"
iop_upgrade_CFLAGS = $(AM_CFLAGS) iopupgrade_CFLAGS = $(AM_CFLAGS)
Help Help
---- ----
./iop_upgrade -h ./iopupgrade -h
Print headers. Print headers.
-------------- --------------
./iop_upgrade -f last.y3 -p ./iopupgrade -f last.y3 -p
Broadcom CFE Broadcom CFE
--- ---
Extract cfe to file. Extract cfe to file.
./iop_upgrade -f last.y3 -C cfe_data ./iopupgrade -f last.y3 -C cfe_data
Burn image to mtd partition Burn image to mtd partition
This needs both the mtd partition device and the nvram offset. This needs both the mtd partition device and the nvram offset.
nvram offset is 1408 or (65536+1408) -> 66944 nvram offset is 1408 or (65536+1408) -> 66944
./iop_upgrade -f last.y3 -c3,4 -N 1408 ./iopupgrade -f last.y3 -c3,4 -N 1408
./iop_upgrade -f last.y3 -c3,4 -N 66944 ./iopupgrade -f last.y3 -c3,4 -N 66944
Broadcom kernel Broadcom kernel
--------------- ---------------
program kernel to mtd0 and set sequence number to 2 program kernel to mtd0 and set sequence number to 2
./iop_upgrade -f last.y3 -k 0 -s 2 ./iopupgrade -f last.y3 -k 0 -s 2
UBIFS root filesystem UBIFS root filesystem
--------------------- ---------------------
extract ubifs image to file extract ubifs image to file
./iop_upgrade -f last.y3 -U ubifs.img ./iopupgrade -f last.y3 -U ubifs.img
burn to ubi volume burn to ubi volume
./iop_upgrade -f last.y3 -u ubi0_0 ./iopupgrade -f last.y3 -u ubi0_0
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
...@@ -45,7 +45,7 @@ cd mtd-utils/ ...@@ -45,7 +45,7 @@ cd mtd-utils/
git checkout iopsys_target git checkout iopsys_target
make make
Put PATH to imagewrite into $PATH its called from iop_update Put PATH to imagewrite into $PATH its called from iopupdate
Nand simulator Nand simulator
---------------------- ----------------------
......
dnl init stuff needs to be first in file dnl init stuff needs to be first in file
AC_INIT([iop_upgrade], [0.1], [Kenneth Johansson <kenneth@southpole.se>]) AC_INIT([iopupgrade], [0.1], [Kenneth Johansson <kenneth@southpole.se>])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AM_SILENT_RULES([yes]) AM_SILENT_RULES([yes])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment