10-04-2012, 10:36 AM | #106 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
It's nice to see some real-world additions were made to the code.
Heart warming. Awesome little tips as well. This is gold-dust info mate. thanks |
10-04-2012, 10:40 AM | #107 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
here is another interesting bit:
Code:
/* * autoscript allows a remote host to download a command file and, * optionally, binary data for automatically updating the target. For * example, you create a new kernel image and want the user to be * able to simply download the image and the machine does the rest. * The kernel image is postprocessed with mkimage, which creates an * image with a script file prepended. If enabled, autoscript will * verify the script and contents of the download and execute the * script portion. This would be responsible for erasing flash, * copying the new image, and rebooting the machine. */ (And I can find what memory address to write the stinking file image to ...) |
10-04-2012, 01:06 PM | #108 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
dang that would be SO peachy. This is So praise worthy. Qualitat, as Ixtab might say : )
|
10-04-2012, 01:09 PM | #109 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
[RANT]
Regular readers here are familar with GM's opinion on excessive whitespace in program code. Here is mine: Defines belong in the "include file" (*.h) ; Code belongs in the "implementation file" (*.c) ; That recommended practice is unknown to the folks at lab126. [/RANT] And to think, somebody actually paid those people to write this stuff. Last edited by knc1; 10-04-2012 at 01:12 PM. |
10-04-2012, 01:20 PM | #110 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
They would be level 0 in your dojo sensei. The fight may be over but the war has just begun. Or other similar rousing Hollywood comments.
Looking at the Glasshouse of "functional" coding horrors my lineage have produced, well... Sufficed to say keeping ones head down is probably in order Beautiful = expensive, every manager knows that. |
10-04-2012, 01:47 PM | #111 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
But that organization which lab126 used means you find things where you least expect them.
Like the need to put the UART and charge controller setup into the *.c file where the defines are at - - even thought that *.c file has absolutely nothing at all to do with the UART or battery charger. [/BAD_MOOD] - - - - I thought, thought I: "Simple, review a few *.h files in the iMX31 branch of the u-boot file system tree, find everything I needed." Yeah, Right! That was about a week ago. A week spent reading this stuff until my eyeballs feel like they are falling out. Instead, what it takes (almost can write: what it took) is to build u-boot for the DX(G) and then read every file mentioned on the load map. |
10-04-2012, 02:14 PM | #112 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
its a form of obfuscation far beyond simple name switching and function remapping.
It's a ninja level where at it's deepest roots something impossibly twisted lies. And that's how "prime number" applications are born. Forged in the blazing heat of contracted managerial pressures. Divisible by nothing but itself, defying understandingly without grasping the complete whole at least once. and maybe not even then. Popping up when you least expect them. The larger the project the more impossible to envisage. Ah. Analogies. Happy days. |
10-04-2012, 03:34 PM | #113 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
It is a true, tri-color LED - -
There is White and Blue-Green also defined in here. Blue-Green == Your device is sick and about to barf. And if it starts blinking 4 sec on / 4 sec off - stand back. (and you will not find that in the "LED code" file.) |
10-04-2012, 03:42 PM | #114 |
Enthusiast
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: various iDevices
|
Aaaaaand we're back from our commercial break. I am now again talking and listening to the DX via the serial port. Situation is as it was before the converter died, in a loop, can get out at u-boot and it looks functional, can get out at recovery console but will not stop at the password prompt, back to loop.
When you have something to test, let me know. |
10-04-2012, 03:47 PM | #115 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Break out of the autoboot sequence, into the u-boot prompt -
Have USB cable plugged into something - I learned today that the battery charger is enabled while sitting at the u-boot> prompt. No need to open device and remove the battery - lab126 did that so they could take the weekend off without the Kindle they where working on, running down its battery. Last edited by knc1; 10-04-2012 at 03:50 PM. |
10-04-2012, 03:53 PM | #116 |
Enthusiast
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: various iDevices
|
Done, but there's an inactivity timeout running that kicks out of u-boot if I'm not doing something with the keyboard. So now on the charger, monitoring serial port, stuck in loop.
|
10-04-2012, 03:56 PM | #117 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Duh... They did not give directions about how to make that "feature" work in the source code, just a note that it was added in by lab126. |
|
10-04-2012, 03:58 PM | #118 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I like to use includes, because it uses less space than copying the stuctures into your main source module. I really do not like excessive vertical scrolling, whether it is through large source files with too much white space, or scrolling through directories filled gazillions of tiny source modules. I have five monitors in front of me, and I have nowhere near enough pixels for my needs. I hate important information NOT being right there in front of me, but having to search in buried windows, or unopened files, or offscreen in some scroll buffer. Using the mouse too much hurts my hand and fingers... Yuck! I need a WALL of pixels. |
|
10-04-2012, 04:01 PM | #119 |
Enthusiast
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: various iDevices
|
Nope, entered "h" and it hit timeout and exited to the loop.
It (the DX) has evidently has been continuously looping for the past few days, as it was immediately active on the serial port when I connected. Doesn't appear to have done it any harm. I hope. |
10-04-2012, 04:11 PM | #120 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
On a brighter (off-topic) note - - My EeePC-701 (which runs 24/7 as my modem control, firewall and gateway device) reports an uptime of 214 days since I last re-booted it. I think that is longer than my K3 lasted from arrival to death. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Touch unbriking troubles | aguzman | Kindle Developer's Corner | 9 | 09-06-2012 07:23 AM |
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 | Xia | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 11-07-2009 10:06 AM |