![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 128
Karma: 842196
Join Date: Feb 2019
Device: none
|
![]()
DISCLAIMER, wrong usage of ntx_hwconfig can >> BRICK << your device.
That being said, this is a small tutorial on how to use ntx_hwconfig. In the example I am updating the Boot Options to enable boot from external mmc/sd card. Its just a random option I picked because it happens to be a good example. 1. Update HWconfig Device Node first, (this fixes: [WARNING]Config version too old) This updates your device configuration to match the version of the ntx_hwconfig tool. Do not skip this step. -s : file name is system device node (seeksize=524288) . * devicenode = /dev/mmcblk0 (internal Multi Media/SD card) * devicenode = /dev/mmcblk1 (external Multi Media/SD card) -u : upgrade config format . Code:
ntx_hwconfig -u -s /dev/mmcblk0 2. Get the BootOpt field value in human readable format -s : file name is system device node (seeksize=524288) . * devicenode = /dev/mmcblk0 (internal Multi Media/SD card) * devicenode = /dev/mmcblk1 (external Multi Media/SD card) -a [Action type] : [hwcfg(default)|cmd2|cmd_test] * action type = hwcfg * field value = BootOpt Code:
ntx_hwconfig -s /dev/mmcblk0 -a hwcfg BootOpt Result Bad (goto step 1): [47] BootOpt='[+] 0x00' 3. Get the BootOpt field value (digital) same as above only we want the digital field value -d : force set/get field value as digital . Code:
ntx_hwconfig -d -s /dev/mmcblk0 -a hwcfg BootOpt 4. Set the BootOpt field value to 1 (digital) same as above only we want to 'set' the digital field value 1 = the value we want to set write = the action we want to perform -f : force write hardware setting without protection . Code:
ntx_hwconfig -d -s /dev/mmcblk0 -a hwcfg BootOpt 1 write -f 5. Get the BootOpt value, to see if its updated. Code:
ntx_hwconfig -d -s /dev/mmcblk0 -a hwcfg BootOpt 6. Get the BootOpt field value in human readable format Code:
ntx_hwconfig -s /dev/mmcblk0 BootOpt Enjoy Last edited by BloodRagg; 04-07-2019 at 07:06 AM. Reason: Fixed some typo;s |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Nice.
If there is nothing to boot on the external, does it try the internal card? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 128
Karma: 842196
Join Date: Feb 2019
Device: none
|
Its just an option, afaict the boot sequence depends on a button press, combination or sequence.
Default boot initiates from the internal mmc, this is all defined in the uboot environment. The option is just an example how to modify the hwcfg. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
GNU HwConfig (c) GPLv2 BloodRagg @ [qXt] | BloodRagg | Kobo Developer's Corner | 5 | 07-21-2019 09:08 AM |
remove_tags_after with more values | niederrhymer | Recipes | 10 | 08-21-2016 09:51 AM |
how to search between 2 values | kindleboy | Library Management | 2 | 11-05-2013 10:01 AM |
Spaces in attribute values (updating El Pais recipe) | lordvetinari2 | Recipes | 2 | 10-19-2010 01:32 PM |
iLiad First HelloWorld tutorial, a n00b primer First Hello World Tutorial, a n00b primer | mind | iRex Developer's Corner | 13 | 09-19-2008 09:43 AM |