ntadmin / DGND3700v2

Custom firmware for the Netgear DGND3700v2
12 stars 4 forks source link

Ensure that busybox applets.h ok in new version #22

Closed ntadmin closed 7 years ago

ntadmin commented 8 years ago

Path to file: busybox-1.13/include/applets.h

ntadmin commented 8 years ago

Diff:

77a78,80
> // brcm begin
> USE_SENDARP(APPLET(sendarp, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
> // brcm end
400a404
> USE_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS))
ntadmin commented 8 years ago

Probably the only issue forthis question is checking that, with the new busybox, the firmware can upgrade itself. If that works, then we can proceed. That's the next check. Set this test up by linking /usr/sbin/flash_eraseall to the new version of busybox.

ntadmin commented 7 years ago

This is odd. It seems that linking flash_eraseall to busybox2 is stopping firmware upgrade. But is it really that? Needs further probing ...

ntadmin commented 7 years ago

Both commands, however, seem to work when tested on a small, not apparently used, bit of flash (mtd 8, or /config/xxx)

ntadmin commented 7 years ago

OK, it boots with the new busybox and all seems fine. Closing this issue, should a specific error be found later create a new issue please.

ntadmin commented 7 years ago

Sadly, when upgrading from new busybox firmware, it fails. So reopening.

ntadmin commented 7 years ago

Tried but didn't change things: making flash_eraseall require suid.

ntadmin commented 7 years ago

Issue identified, see: https://github.com/ntadmin/DGND3700v2/wiki/Tech-info:-flashing-the-firmware.

ntadmin commented 7 years ago

Solved as per that page, first option.