Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2019, 06:08 AM   #1
BloodRagg
Connoisseur
BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.
 
Posts: 69
Karma: 1342
Join Date: Feb 2019
Device: none
Talking NTX hwconfig tutorial, updating values

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 Good: [47] BootOpt=ESD:OFF

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
Result: [47] BootOpt=0x00


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
Result: Hw config field "BootOpt" set as "1" success !!


5. Get the BootOpt value, to see if its updated.
Code:
ntx_hwconfig -d -s /dev/mmcblk0 -a hwcfg BootOpt
Result: [47] BootOpt=0x01


6. Get the BootOpt field value in human readable format

Code:
ntx_hwconfig -s /dev/mmcblk0 BootOpt
Result: [47] BootOpt=ESD:ON


Enjoy

Last edited by BloodRagg; 04-07-2019 at 07:06 AM. Reason: Fixed some typo;s
BloodRagg is offline   Reply With Quote
Old 04-08-2019, 02:31 AM   #2
Markismus
Evangelist
Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!Markismus has a thesaurus and is not afraid to use it!
 
Markismus's Avatar
 
Posts: 439
Karma: 99309
Join Date: Jul 2013
Location: Netherlands
Device: Cracked KoboAuraHD, Cracked KoboAura, KoboAuraH2O, KoboGlo
Nice.

If there is nothing to boot on the external, does it try the internal card?
Markismus is offline   Reply With Quote
Old 04-08-2019, 06:16 AM   #3
BloodRagg
Connoisseur
BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.BloodRagg is no ebook tyro.
 
Posts: 69
Karma: 1342
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.
BloodRagg is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GNU HwConfig (c) GPLv2 BloodRagg @ [qXt] BloodRagg Kobo Developer's Corner 2 04-01-2019 03:14 PM
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


All times are GMT -4. The time now is 08:24 PM.


MobileRead.com is a privately owned, operated and funded community.