000webhost

Web hosting

Saturday, October 6, 2012

Audio Feedback Bug, Physical Security Systems, and Oscilloscope Research

Every once in a while I use an audio double adapter for recording or playback purposes. Recently, I noticed a bizarre bug though. If you understand how playback control circuitry works on headphones you'll understand that an electrical signal is sent to the device which (depending on the signal) will cause it to play, pause, rewind, and so on. With this particular adapter though under certain conditions signals would be looped over and over again. The only way to break it was to disconnect it from the second connected device or disconnect the adapter completely. I've thought of creating software to filter the signal itself but it doesn't seem to be much of a problem at this stage.

If you've been reading this blog of late you'll have realised that I've been conducting research into security of late. My latest work has involved looking at physical security systems. One of the things I've been looking at is how easy it is to disable low to mid level priced security devices (We'll neglect basic techniques such as physical destruction, cutting the power, and disconnecting the speaker siren.). What I've discovered is that what you see in the movies is basically what you get in the real world as well. If circuitry is reasonably simple it's almost trivial to see which particular pins need to be shorted in order to disable the system. On multi-PCB systems though things may be slightly more complex but the theory/practice remains the same. If you focus in on the switching circuitry/section (It doesn't matter whether the system depends on a keypad, cards, or something else. The principles are the same. You can choose to hack the keypad, cards, etc... but this is by far the easier option if it's available. Learn to use a continuity tester or multimeter. It will serve you in many more ways than you'll ever expect. Use alligator clips. They'll save you a lot of time.) then you can disable it fairly quickly.

Just like computer security though you'll notice that there are a lot more ways to disable it rather than enable it. If you don't want to go deaf with the siren disconnect it and reconnect it to a standard, adjustable, powered speaker.

The obvious countermeasures are to use alarm systems that depend on a 'heartbeat' or which are (or can be) monitored remotely, use something where circuitry between the reader and the authenticator are separate, or watch for PCB's which simply are complex to trace/read which gives the attacker less time to examine it. Other possible measures are actually painting over your PCB (to stop examination), ensuring that your alarm system is as physically secure as possible (It's ironic how many keypads/security systems often have openly available screws/ports through which to access the PCB easily. If you're confident in the reliability of your system glue it together or use tamper proof stickers.), and a good guard dog.

http://www.theage.com.au/digital-life/consumer-security/the-pins-you-should-avoid-at-all-cost-20120920-267xd.html

http://en.wikipedia.org/wiki/Reed_switch
http://en.wikipedia.org/wiki/Hall_effect_sensors
http://en.wikipedia.org/wiki/KeeLoq
http://en.wikipedia.org/wiki/Photodetector
If you don't have an oscilloscope (cheapest handheld one I've seen is available for about 300 locally though they are often available inexpensively second hand) then there are other options. Some options include using sound cards and data acquisition cards (you need to ensure that the voltages are 'safe' for your card and your cards are fast enough to capture the data from the system being examined though) in combination with relevant software to examine the resulting waveforms.

http://projectproto.blogspot.com.au/2010/09/android-bluetooth-oscilloscope.html
http://www.ledametrix.com/oscope/index.html
http://libk8055.sourceforge.net/
http://www.zeitnitz.de/Christian/scope_en

Amazing how far translation technology has come. On the fly, verbal translation is now possible.

http://www.itranslatevoice.com/

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Tuesday, October 2, 2012

Soldering, FTL Travel, and more Security Analysis...

There seems to be a common theme regarding posts on this blog of late. Obviously, many involve DIY solutions. Over the past week I've had a USB flash storage device as well as a mouse malfunction. In both cases, it was down to a soldering defects during manufacture. It's not the first time and as others have also discovered it's quite common on devices with micro/mini USB ports. Obviously, having a break occur at the port rather than the PCB level is preferable as you just resolder though... If there's anything I've learnt recently is that if you dabble in computing/electronics you should probably learn to solder. With the advent of SMD components things are obviously a bit more difficult and an Air Pencil is an unrealistic option (price) for most people. For others, I've come across the many options including (obviously, they aren't suitable for all situations/circumstances though. As a wise man once said, "think twice, cut once"):

- Solder Paste
- Liquid Silver
- Wire Glue
- other glue like hybrids/solutions are conductive...

If you have issues with plastic joins there are a range of glues/epoxies/cements out there but recently I started experimenting with plastic welding (heat source to weld pieces of plastic with one another using a third party (I've been using the plastic ring from soft drink bottles) plastic as a joiner). Success has been limited. It seems to work but only in a limited number of situations. I would not recommend it for stress bearing loads.

Some interesting reading for those looking to save energy.
http://20somethingfinance.com/how-much-electricity-costs-appliances-and-how-to-cut-your-usage/

Some wierd and wonderful ways to save energy.
http://ths.gardenweb.com/forums/load/energy/msg0122183322379.html?18

Find it strange that many eReaders/USB flash storage (even Smartphones) devices continue to present FAT32 as their 'best' filesystem option. I understand the commercial reasons behind the decision but in this day and age of multi-gigabyte flash storage, critical data, and large file sizes it's not ideal. If it's a choice between raw speed and filesystem integrity then I choose the latter.

While contemplating/working on other research I was exploring the possiblity of WARP drive technology (yes, Faster Than Light (FTL) transportation technology). One of the avenues that I was pursuing similar to this one.

http://www.itwire.com/science-news/space/56656-nasa-experiments-with-star-trek-like-warp-drive

I didn't crunch the numbers but apparently, the energy levels required are actually realistic. There are many problems pursuing this particular line of thought though. For instance, how do you calculate where you end up? How does conventional communication deal with being sent through folded space time? Does it radiate isotropically? Can you change its radiation aperture? Is it possible that it may behave in a subspace like fashion? On to more practical matters, if you're basically moving at infinite speed how do your calculate your speed/WARP factor? How does biological material deal with such travel?

My suspicion is that if we are able to achieve FTL travel (Rocketry works but has many limitations and problems. Cost, safety, complexity, efficiency, and so on... Moreover, let's put put current space travel into perspective here. Voyager 1/2 were sent decades ago and were involved in all sorts of astronimical gymnastics, have only been able to achieve 10-30km/s, and have only just reached the edge of the solar system. We need a realistic alternative to truly explore space.) than it won't be via conventional science. It will revolve around going around rather than breaking through existing problems as has been outlined above and it will take a significant level of intermediate science to get from theory to practice. In spite of all this, I suspect the journey to the stars will be a difficult, though fascinating, and enjoyable one...

Found another minor problem with LibreOffice. On long documents it doesn't repaginate properly/quickly enough. You can force a proper refresh by restarting the program but obviously this isn't perfect. I'm around 604+ pages/170K+ words on my 'Cloud and Internet Security' report now. It's reached the point where editing has become much more difficult and I'm considering splitting into it into 2 or 3 volumes, of around 200-300 pages each? I didn't think it would reach this size but the fact is there is a lot of insecure technology out there. Basically, anything you look at in your vicinity can be used in a defensive/offensive capability in the context of cyberintelligence/cyberwarfare.

http://hackaday.com/2007/08/02/black-hat-2007-other-wireless/
http://www.dreamlab.net/download/articles/27_Mhz_keyboard_insecurities.pdf
http://hackaday.com/2007/12/02/wireless-keyboards-easily-cracked/

http://www.cse-cst.gc.ca/its-sti/publications/itspsr-rpssti/itspsr17a-eng.html

http://dangerousprototypes.com/2011/09/16/apco25-protocol-encryption-cracked/
https://www.schneier.com/blog/archives/2011/08/security_flaws.html
https://en.wikipedia.org/wiki/Project_25

http://marienfeldt.com/2010/04/15/dect-phone-interception-made-easy/

Since a lot of technology seems to be based off of the same theories (and the same goes for security technology as well) and modification of practical solutions we've seen throughout this document that once there is a break in a core theory there is a very big and real problem depending on the nature of the technology and how widely it is used. The problem is made worse since since it seems clear that time after time our existing paradigms/theories/solutions are being broken. Active Authentication/Cognitive Fingerprinting (behavioral/continuous authentication over time, a concept that I've been toying around with for a while (published in the 'Cloud' document, refined/detailed in the 'Convergence' document, and I'm continuing work on...), pursued by DARPA, Israeli, QUT and other researchers but whose roots go deeper and further back in time then most people would believe. It goes back to the Cold War and I suspect much earlier from there, see Clifford Stoll's Cuckoo Nest) represent one possible avenue of research.

http://www.networkworld.com/community/blog/darpa-detail-program-radically-alters-securit
http://www.schneier.com/blog/archives/2006/03/class_break_of.html

http://arstechnica.com/tech-policy/2012/07/how-software-defined-radio-could-revolutionize-wireless/

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Wednesday, September 19, 2012

Automated Research and Some More Wireless Foo

One of the things that I sometimes wonder is whether or not Australia is lucky or unlucky in being so geographically isolated. Some industries (Airline and Motoring are probably the most recent and notable examples that come to mind) have not been provided with a level playing field when compared with the rest of the world. They've either been playing with one hand tied behind their back or others have. They haven't learnt to adapt. I think this is what happened with another industry that I recently had interactions with. Overseas, firms in this particular sector have advanced significantly over local competitors most particuarly in the clever use of technology. I've been thinking about this issue more though. Some of the concepts mentioned in my previous report (Convergence Effect)(such as 'Automated Research', http://dtbnguyen.blogspot.com/2012/03/automated-research.html) have had significant resources allocated to them but it's becoming clearer to me just how far we can push it. Data mining, searching, statistical analysis, and report writing are all processes that can be significantly automated with sufficient knowledge and application of technology (I'll provide a more detailed framework on how to achieve this in the context of Security analysis in my report on, 'Cloud and Internet Security' (about 557+ pages/155K+ words now) but obviously it can be used in other contexts as well).

http://www.businessweek.com/articles/2012-09-13/watch-out-google-facebook-s-social-search-is-coming#r=shared

In my recent experiments I've obviously been experimenting with various different USB wireless adapters. One of them was the D-Link DWA-125 A3 (rt5370sta), another was the NetGear WNDA4100 (rt3573sta, you need to modify the driver to add support for the new chipset, http://ubuntuforums.org/showthread.php?t=1942689), while another was Jaycar's YN8306 (all Ralink chipets funnily enough with decent Linux support, http://www.ralinktech.com/en/04_support/support.php?sn=501). Clearly, after doing a lot of experimental work I've discovered a lot about antenna technology as well as the current state of wireless technology out there. One of the things I didn't realise is how drastic some of the differences could be between revisions of both adapter and chipset. My original purchase of the YN8306 seemed to be reasonable but the performance was nothing spectacular (Ralink 3070L). After discovering the USB port was somewhat loose (it was constantly losing grip of the cable) I exchanged it for another one but discovered something similar so this time I opened up the device and made some modifications (extra solder to bolster the strength of the USB port). While I was in there I noticed that the chipset had been upgraded to the Ralink 3072L. My thoughts regarding the Rev A were that it was good but didn't have the level of sensitivity that I thought it would. Rev B was a bit different though. Based on initial observations it may be at least 20% stronger with regards to sensitivity when compared to the Rev A and transfer rates were far less likely to fluctuate. A significantly better device overall.

With my recent incursions into antenna design I should probably extrapolate on what exactly I mean. I've torn apart anything and everything that I could possibly get my hands on and have even resorted to modifying television equipment in combination with broad range amplifiers to boost signal strength (I know it's not 'tuned' to the correct frequency but I just wanted to see what would happen.). What have I learnt? With enough imagination a lot of weird and wonderful things are possible. While hooking up my wireless adapter to the home television antenna (yes, the one on the roof) prooved to be an interesting exercise it only yielded slightly better results than having no antenna at all. A broad spectrum amplification device brought it up to slightly better than the originally included 5dBi antenna and forays into using antenna systems extracted from a dead router only yielded neglible benefits. A 16dBi antenna purchased during a local swap meet did result in a noticeable (though still small) gain though. Using a sieve (it's actually quite difficult to find suitable parabolic/spherical sized shapes in the house (unless you're willing to tear up potentially valuable goods such as headlamps). I had to go out and purchase a sieve for $2.80 at a local 'value store') only helped in certain configurations (I later found out an antenna from an old eMac was actually able to significantly boost the sensitivity of the DWA-125 A3 depending on it's polarity.) unless I switched to a more forgiving Gregorian Satellite Dish design (I used another smaller sieve and some elastic bands to replicate the design).

http://en.wikipedia.org/wiki/Satellite_dish

I even tried extremely crude Cantenna and Yagi style antenna designs (I'm waiting for an order to come in). The difference was that I made mine out of solf drink bottles with the bottom cut out wrapped with aluminium foil and also something I call 'Ruler-Yagi'. Basically, an antenna that was made out of a wooden ruler (boom), gold paperclips (it's suprising what you can find these days at Officeworks), blu-tack, and connected to a wireless adapter using alligator clips. There was a significant boost in signal (50%) when my 'Softenna' was directed properly and surprisingly there was an actual gain for 'Ruler-Yagi' but once again it was only minimal (10-20% signal sensitivity increase).

In the context of cyber-intelligence/operations it interests me to see what sort of antenna systems we could possibly pursue. There is a high likelihood that given the right materials high gain antennas could be embedded or inserted inside of suit cases or even other devices with connectivity being provided via cable (or hopefully) wireless. For example, a supposedly long life battery could be modified to provide a genuinely higher gain antenna provided space/cells were cleared from the internal cavity. Alignment could be facilitated by an internal lens/reflective camera system.

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Sunday, September 16, 2012

Windows (and Android) Aren't (That) Inflexible...

If you've played around with Windows ISO's then you'd realise that with the advent of Windows Vista and 7 it is possible to convert a generic ISO to a so called 'Universal' addition through some ISO file modifications (and of course the correct 'Prodcut Key').

http://code.kliu.org/misc/winisoutils/
http://tweaks.com/windows/40135/install-any-edition-of-windows-7-from-any-windows-7-dvd/
http://www.mydigitallife.info/how-to-select-any-edition-or-version-sku-of-windows-7-to-install-from-single-edition-dvd-disc-media-or-iso/
http://www.mydigitallife.info/create-windows-7-universal-iso-with-all-editions-selection-on-install-with-ei-cfg-removal-utility/

If you've been playing with Windows 8 and have not become accustomed to the interface there is some salvation.

http://www.stardock.com/products/start8/
http://www.techrepublic.com/blog/window-on-windows/start8-put-the-start-menu-back-in-windows-8/5864
http://www.askvg.com/download-classic-shell-skin-to-get-windows-7-look-like-start-menu-and-start-button-in-windows-8/

For those of us who need or would like to extend the trial period for Windows 7.

http://forums.mydigitallife.info/threads/19113-IR5-The-Official-Windows-7-Rearm-Solution
http://forums.mydigitallife.info/threads/17938-GUIDE-How-to-really-run-Windows-7-forever-without-applying-any-cracks
http://forums.mydigitallife.info/threads/24744-Trilogy-4-2
http://msftkitchen.com/tag/removewat

If you haven't realised already the Kobo VOX is basically a low end tablet running Android. Moreover, there is an active community out there that is working on unlocking  the full capabilities of this device.

http://www.mobileread.com/forums/showthread.php?t=156773
http://www.mobileread.com/forums/showthread.php?t=94213

You can mount filesystems other than FAT32 on Android and have multi-partition support though I wouldn't say that it is 'clean' at this stage.

http://www.androidzoom.com/android_applications/tools/drive-mount_bbjqc.html
http://ubuntuforums.org/showthread.php?p=7446857
http://androidforums.com/samsung-galaxy-tab-2/543306-exfat-ext3-support.html
http://code.google.com/p/android/issues/detail?id=8111
http://forums.whirlpool.net.au/archive/1790655

If you haven't heard already it is possible to run Debian alongside Android on your smartphone making the possibilities almost limitless.

http://evilzone.org/android/debian-on-android/
https://github.com/guardianproject/lildebi
http://android-dls.com/wiki/index.php?title=Installing_Debian
http://evilzone.org/android/debian-on-android/
http://www.androidfanatic.com/community-forums.html?func=view&catid=9&id=251
http://www.saurik.com/id/10/
http://g1tools.googlecode.com/

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Monday, September 10, 2012

Mobile (Wireless and Power) Foo

Recently, I have had to go slightly more mobile and in doing so I've been examining both portable wireless as well as power solutons. There has been some previous work with regards to powering a netbook using a series of AA batteries in series but I've been experimenting with basically using anything I have available to me. Seeing as though I'm limiting myself to what I have though it's been interesting. Some of the battery holders that are available aren't designed to work unless they are completely populated meaning some re-wiring work is required (alligator clips) if you don't have a perfect set of batteries to fulfil your requirement (yes, I'm aware of the recommendation that you should use a balanced set of batteries but I only require the supply for a maximum of 1 minute while I switch over the actual laptop battery. Another alternative is of course using a voltage regulator/inverter.

You may be asking why I'm not just using a power inverter or a car/air laptop adapter of some sort? Well, based on what's available at my local retailers the choice isn't optimal and doesn't come in at a reasonable price. Dirty power and modified sine waves just aren't my idea of an 'ideal solution'. Hence, my foray into more flexible forms of energy. A more refined product is of course available such as the following.

http://www.batteries-depot.com/outproducts.php/24+3973

We're almost at the point where the price of solar panels, regulation, and storage have dropped (and cell efficiency has increased) such that it may be a worthwhile investment in a home (and mobile) environment. I've seen complete $200-300 options (panels, regulators, and storage pack) available at local electronics/automotive retailers of late.

Wireless technology has come a long way but it's still clear that more research is required. In some of my other work (my "Cloud and Internet Security" report is likely to exceed 600 pages now...) I've been scrutinising wireless security (and therefore long (at least 300 metres away between the source and the target with less than optimal conditions such as trees, fences, and other objects in between using both standard and inexpensive (less than $50) long range equipment. Look up Alfa wireless though there don't seem to be too many local options.) range and broad spectrum wireless options). There is still a substantial amount of Draft-N equipment (I've noticed some retailers have been clearing wireless equipment of late probably in anticipation of 802.11ac equipment. I've also noticed a trend towards merely modifying reference chips rather than seeking the most optimal performance and often manufacturers will swap chipset entirely between revisions if there are significant problems with the original release.) out there at the moment even though 802.11n was officially ratified several years ago and 802.11ac (pre-draft versions) equipment is actually on the market right now.

http://en.wikipedia.org/wiki/IEEE_802.11
http://en.wikipedia.org/wiki/IEEE_802.11n-2009
Based on random testing in my area it's clear that 2.4GHz wireless equipment is far more popular than 5GHz and dual band solutions are prohibitively expensive when compared with single band solutions. While MIMO has been around for a while multi-stream technology is still something we're figuring out. Three (two stream products seem to be mostly fine) stream products have only hit the market recently and research indicates that this may be due to the sheer complexity of such a setup and lack of sufficient CPU power (for a reasonable price) in a small package.

People seem to complain a lot about customer service/support these days. Based on an examination of local retailers there's very little to separate customer experiences. I have the funny feeling that if manufacturers/retailers just followed the letter of the law and provided reasonable products they would be considered the odd ones out? If you do some research you'll find that some practices border on illegality and depending on the firms in question there is a general lack of quality control and monitoring when outsourcing work.

http://www.customerservicescoreboard.com
Prior to some of my recent antenna experimentation I thought antenna design was reasonably simple. How naive... While there are many general designs out there a lot of them undergo extensive 'tuning' and it's not immediatelly clear why they are so different from 'average antenna' designs. For example, I recently opened up a USB wireless adapter, a DWA-125 A3 (removing RF shield on a DWA-125 A3 reduced signal strength by perhaps 5% but its perceived difference in performance was negligible to be honest). It was a strange design (from my perspective) because when you ran a continuity test through it's not immediately clear that there was a distinction between ground and signal. Compare it with an examination of a Sierra 306 USB 3G (Telstra Elite 21) modem where there is a clear and distinct one to one correlation between external antenna connector and on board antenna systems (I've read that that one is for transmission and another is for reception with sometimes another option for an auxillary antenna in embedded routers solutions). 

http://www.wirelessforums.org/wireless-networking-discussion/diy-wifi-active-antenna-build-54992.html
http://www.instructables.com/id/How-to-make-an-active-wifi-tetrapak-antenna-fast/

Once you understand the concept of metamaterial antennas though it becomes clearer how they work. By altering materials you can (theoretically) increase the isolation between ground and signal providing for overall stronger signal quality and basically increase the virtual size of the antenna. Something which is not immediately obvious if you are new to miniature antenna design (I've seen some other work whch also questions this design but bypasses/improves on it by allowing for connection of higher gain conventional antenna solutions).

http://en.wikipedia.org/wiki/Metamaterial_antenna
http://en.wikipedia.org/wiki/Smart_antenna

You need to understand the theory behind the antenna in order to be able to find optimal reception whether or you will never be able to extract the optimum solution without extensive trial and error. Recently, I was fiddling around with various antenna solutions (anything that was immediately available to me from pots, pans, cans, TV antennas, to COTS solutions. Most designs/solutions are too specialised though and have too narrow a performance band. The most general wide band solution that I came across was based on parabolas and cutlery holders in a directional/perpendicular arrangemnt/setup with back panel of an dissassembled eBook Reader which had a passive cooling solution on it in the form of aluminium sheeting.) seives and other parabola like shapes with non-standard shaped USB wireless adapters. Convential orientation with the antenna (and dish like object) pointing direct at the target was significantly better (from 55 to 75% signal quality) but non-optimal than when the horizontal reference plane of the receiver was below the target and therefore the azimuth between the target and the adapter was increased (75 to 100% signal quality). Admittedly, this had partly to do with the physical objects between the adapter and the target and the interaction (absorption, reflection, superposition, and so on) between them (high school and early graduate level physics is useful here). However, if you understood how the waveform radiates from the source than you would have understood why this was a more optimal setup.

In the context of pentration testing and network design this knowledge would also be useful in dealing with 'blind spots' and more covert access points. While there is software that can predict/simulate (within reason) wireless signal interaction with architecture and signal gain of different antenna designs in the real world this can be cumbersome. Its easier more useful if you know most of theory off the top of your head, guesttimate in the field, and then use software to confirm/more accurately determine your guesttimations.

Some serious beasts when it comes to routers out there at the moment. Power consumption similar to netbook (but with performance to match).

Typical connectors for reference.

Huawei 3G - CRC9
Internal Laptop - U.FL/I.PEX
NetGear/D-Link - RP-SMA
Linksys - RP-TNC

Saturday, August 18, 2012

Funky Firmware

I've been examining my home network. Part of this process has obviously involved examining firmware upgrade options for embedded routers such as OpenWRT, DD-WRT, and Tomato. I have a Linksys WRT-54GL lying around but due to the flash constraints (it runs with 4MB flash and 8MB RAM) I've also been investigating other options (including hardware mods) and alternative hardware for a reasonable (sub-100). The hardware mods (such as USB, SD, Serial, etc...) aren't all that difficult. The main thing to take into consideration though is that this is the Internet. Information will vary in quality, people have slightly different hardware, and of course the way people communicate isn't always clear. Nonetheless, an SD card mod is very much a viable (and easy if you are a semi-decent solderer) option if you need more space for software installation (though indications of a short aren't exactly easy to decipher in the logs though).

Log entry with bad soldering job for SD mod.

[INFO] mmc_hardware_init: initializing GPIOs
[INFO] mmc_card_init: the period of a 380KHz frequency lasts 524 CPU cycles
[INFO] mmc_card_init: powering card on. sending 80 CLK
[INFO] mmc_card_init: 80 CLK sent in 43663 CPU cycles
[INFO] mmc_card_init: resetting card (CMD0)
[FATAL] mmc_card_init: invalid response from card: ff found, waiting for 01
[INFO] mmc_card_init: the period of a 380KHz frequency lasts 524 CPU cycles
[INFO] mmc_card_init: powering card on. sending 80 CLK
[INFO] mmc_card_init: 80 CLK sent in 43275 CPU cycles
[INFO] mmc_card_init: resetting card (CMD0)
[FATAL] mmc_card_init: invalid response from card: ff found, waiting for 01
[ERROR] mmc_init: got an error calling mmc_card_init: 01
[ERROR] mmc_check_media: change detected but was not able to initialize new card: ffffffff

Log entry with good soldering job for SD mod.

[INFO] mmc_hardware_init: initializing GPIOs
[INFO] mmc_card_init: the period of a 380KHz frequency lasts 524 CPU cycles
[INFO] mmc_card_init: powering card on. sending 80 CLK
[INFO] mmc_card_init: 80 CLK sent in 43646 CPU cycles
[INFO] mmc_card_init: resetting card (CMD0)
[INFO] mmc_card_init: doing initialization loop
[INFO] mmc_card_init: card inited successfully in 354 tries (10920782 CPU cycles).
[INFO] mmc_init: MMC/SD Card ID:
01 50 41 53 30 31 36 42 45 8a 16 3f b4 00 59 1f [INFO] Manufacturer ID   : 01
[INFO] OEM/Application ID: PA
[INFO] Product name      : S016B
[INFO] Product revision  : 4.5
[INFO] Product SN        : 3a529fb1
[INFO] Product Date      : 2005-9
[INFO] mmc_card_config: size = 14560, hardsectsize = 512, sectors = 29120
[WARN] mmc_init: hd_sizes=14560, hd[0].nr_sects=29120
[INFO] mmc_card_init: set_blocklen (CMD16) succeeded !
Partition check:
 mmca: p1

http://beta.ivc.no/wiki/index.php/Adding_SD_card_to_WRT54GL
http://www.isnull.com.ar/2009/12/wrt54gl-v11-sd-card-mod-with-openwrt.html
http://wiki.openwrt.org/doc/howto/mmc_over_gpio
http://www.jbprojects.net/articles/wrt54gl_mods/#sw2
http://www.dd-wrt.com/wiki/index.php/Linksys_WRT54G-TM_SD/MMC_mod
http://programmingstuff.free.fr/files/openwrt/whiterussian/mmc/src/

Along the way, I obviously found some interesting information about the hardware as well. One thing which surprised me though was how little exploration (it seemed that way to me) was done of the onboard voltages though. Some of the extraneous circuits out just didn't seem to be required. On my board alone there seemed to be stable sources for 2 (LEDs), ~3 (JTAG/Serial), 1.8, 5, 15 (DC Jack) volts around various areas of the board (with some clever programming and/or wiring you may also be able to extract decent/stable voltages from the Ethernet ports as well).

Please note that there is a difference in signalling/voltage between the onboard JTAG and standard RS-232 serial ports though. Note also, that while the difficulty of the solder job to create onboard serial/JTAG ports is trivial the USB job is can be extremely difficult if not well thought out or if you don't have adequate equipment on hand.

http://www.dslreports.com/forum/r22654574-Undersized-Power-supplies-from-Linksys.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=54242&postdays=0&postorder=asc&start=75
http://www.techrepublic.com/photos/cracking-open-the-linksys-wrt54g-wireless-router/62182
http://woodhousellc.com/?p=30
http://en.wikipedia.org/wiki/Ethernet_over_twisted_pair
http://www.mingtek.tw/pdf/B-17.pdf
http://www.powco.net/wrt/
http://www.jbprojects.net/articles/wrt54gl_mods/
https://forum.openwrt.org/viewtopic.php?id=9653
http://www.devttys0.com/2011/07/reverse-engineering-vxworks-firmware-wrt54gv8/
http://wikidevi.com/wiki/Atheros
http://www.wrtrouters.com/router/wrt54g/
http://en.wikipedia.org/wiki/Linksys_WRT54G_series
http://infodepot.wikia.com/wiki/Linksys_WRT54GL_v1.0
http://infodepot.wikia.com/wiki/Linksys_WRT54GL_v1.1
http://www.apcmedia.com/salestools/VAVR-5WKLPK_R1_EN.pdf
http://en.wikipedia.org/wiki/Serial_port
http://www.aggsoft.com/rs232-pinout-cable/pinout-and-signal.htm
http://forums.whirlpool.net.au/archive/1784403
http://www.instantfundas.com/2010/07/7-alternative-firmware-for-wireless.html
http://www.jbprojects.net/articles/wrt54gl_mods/
https://forum.openwrt.org/viewtopic.php?pid=5329
http://wiki.openwrt.org/doc/howto/mmc_over_gpio
https://forum.openwrt.org/viewtopic.php?id=9653&p=1
https://forum.openwrt.org/viewtopic.php?pid=47366
https://forum.openwrt.org/viewtopic.php?id=23308
http://en.wikipedia.org/wiki/Capacitor_plague
http://www.apogeekits.com/power_adapter_selection.htm
http://answers.yahoo.com/question/index?qid=20080823014024AADQZnk
http://en.wikipedia.org/wiki/Failure_modes_of_electronics
http://www.elexp.com/t_solder.htm
http://helpdeskgeek.com/windows-7/windows-7-hyperterminal/
http://www.evga.com/forums/tm.aspx?m=185066&mpage=1
http://electronics.stackexchange.com/questions/1409/best-methods-to-fix-broken-tracks
http://en.wikipedia.org/wiki/Voltage_spike
http://parashell.sourceforge.net/docs/parallel.txt
http://www.unixmen.com/unp-universel-file-extractor/

Note that if you end up using the Ritmo HL-340 USB to serial adapter you'll need the ch341 kernel module under Linux and the following driver for Windows 64 Bit (not included on the support CD that I received).


Bus 002 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter

[130081.190436] usb 3-1: new full speed USB device number 2 using uhci_hcd
[130081.349157] usb 3-1: New USB device found, idVendor=1a86, idProduct=7523
[130081.349171] usb 3-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[130081.349182] usb 3-1: Product: USB2.0-Ser!
[130081.467336] usbcore: registered new interface driver usbserial
[130081.467386] USB Serial support registered for generic
[130081.467474] usbcore: registered new interface driver usbserial_generic
[130081.467482] usbserial: USB Serial Driver core
[130081.480724] USB Serial support registered for ch341-uart
[130081.480788] ch341 3-1:1.0: ch341-uart converter detected
[130081.492731] usb 3-1: ch341-uart converter now attached to ttyUSB0
[130081.492825] usbcore: registered new interface driver ch341

I explored a number of options for a full router upgrade (but D-Link/Netcomm/NetGear were prime options simply because I had credit at my local Officeworks store). Here are some of the options. Note, that most on-line reviews of D-Link hardware seem to indicate that these are terrible devices in their normal guise/firmware configuration (they also seem to have a history of releasing bad first versions but solid subsequent revisions (read Amazon reviews)) but with better firmware they can make extremely good, inexpensive pieces of hardware.

https://www.flashrouters.com/blog/2012/02/07/d-link-dir-632-dd-wrt-router-with-8-ethernet-ports-integrated-vpn-usb-port-featured-dd-wrt-flashrouter-of-the-day/
http://forum.pfsense.org/index.php?topic=47207.0
http://doc.pfsense.org/index.php/HOWTO_Install_pfSense
http://www.dd-wrt.com/wiki/index.php/Known_incompatible_devices
http://www.dd-wrt.com/wiki/index.php/Supported_Devices
http://www.dd-wrt.com/wiki/index.php/JFFS_File_System
http://www.dd-wrt.com/wiki/index.php/D-Link_DIR-632
http://www.dd-wrt.com/wiki/index.php/D-Link_DIR-825

Moreover, depending on your router choice you may be able to gain 3G backup capability (via USB modem).

http://www.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection
http://doc.pfsense.org/index.php/Configuring_3G_modems

Another choice of course is to simply turn a spare PC/laptop/netbook into a router and use a crossover cable to keep things going (laptop is obviously a decent choice since it basically has its own backup power system).

https://support.net.com/display/UXDOC1/Ethernet+Crossover+Cable
http://en.wikipedia.org/wiki/Ethernet_crossover_cable
http://www.jaycar.com.au/productView.asp?ID=YT6081
http://ubuntuguide.net/ubuntu-connect-to-internet-via-android-phone-as-usb-modem

3G setup is actually fairly easy (depending on the modem) under Linux (I've seen and heard of bad things when it comes to many OEM software driver setups).
usb_modeswitch -v [Vendor ID] -p [Product ID] -R
nm-connection-editor (or some other network configuration utility).

Watch for some wierdness though. I had one system not being able to automatically pickup DNS setting from the ISP. I had to manually insert a rule.

https://bugzilla.redhat.com/show_bug.cgi?id=467004
http://forums.whirlpool.net.au/archive/1544486

While we're on the topic of firmware there does seem to be Open Source firmware projects for well known SSD's out there.

http://www.openssd-project.org/wiki/The_OpenSSD_Project

As you can see though, SSD reliability is still very much up in the air (across ALL manufacturers) though (keep backups, do your research, and so on.).

http://www.xtremesystems.org/forums/showthread.php?271063-SSD-Write-Endurance-25nm-Vs-34nm

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Cleanup Operations

If you haven't already figured out already I often repair/investigate devices (for myself as well as on behalf of others) in my spare time. I was recently given an Acer Aspire One 531h, a Acer Aspire 1671 as well as a laptop that was running Vista in a foreign language. Let's start with the easy stuff. Language packs are easily handled via the following. Please note that while this may handle most dialogue within the operating system itself it doesn't deal with installed programs such as utilities, security, and other software.

http://www.froggie.sk/download.html
http://support.microsoft.com/kb/946928
http://www.mydigitallife.info/windows-vista-mui-language-packs-for-x86-and-x64-direct-download-link/
http://windows.microsoft.com/en-us/windows-vista/Change-the-display-language
http://windows.microsoft.com/en-US/windows-vista/Install-a-display-language

The Aspire One and 1671 were much more difficult propositions. It was clear that they had previously been opened and were mis-diagnosed or had strange fixes applied to them. The 1671 was shutting down a few seconds after boot or would only boot when the battery had been charged for a little while. While opening it up:
- plastic pieces fell off after they had previously been broken and were inadequately put back (super/expoxy glue can work but is harder to use when dealing with thin plastics)
- there was glue where it shouldn't have been (super glue debonder helps here)
- the CPU wasn't locked down properly (there's a screw/lever mechanism for locking it in place normaly)
- it was clear that several screws were misplaced
- there were globs of heatsink compound everywhere, and so on...
It's clear that the previous person thought that the problem was entirely down to heat. By running a multimeter over the terminals of the DC jack it was clear that this wasn't the case though. The inner pin of the DC jack was losing contact with the mainboard which meant that only a trickle of charge was reaching the system with the result being unable to start the system or only being able to start it with an adequately charged battery (Unsurprisingly, it also had other issues such as a pirated version of Windows). On top of this, the trackpad seemed to be disabled by defaut after software re-installation?

http://www.daniweb.com/hardware-and-software/pc-hardware/usb-devices-and-other-peripherals/threads/25588/synaptics-touchpad-suddenly-stopped-working

Like the 1671, the One had many problems (the primary issue was the that no charge was reaching the system though):
- there was a break in the cable on the old AC adapter when you bent it. It also seemed to be a poorly made replacement (Lite-On branded but reviews seem to be poor on Amazon with similar problems reported, http://www.daniweb.com/hardware-and-software/pc-hardware/usb-devices-and-other-peripherals/threads/25588/synaptics-touchpad-suddenly-stopped-working) with the plug being slightly too large for the socket. Jigglng the plug made it work but it also exacerbated the problem with the DC jack. You were basically covering one problem with another and dismounting the pin in the DC jack (you can choose to either re-solder or replace)
- cable between mainboard and front LED lights had worn out contacts ('mended' by trimming a bit off the tip)
- there was a break in the connection between the internal wireless card and the attenna (re-soldered)
- the centre point on the DC jack was not connected properly to the mainboard (re-soldered)
- there was a break in the plastic on the right side panel (glue)
- numerous screws were misplaced (guess-timation)
- two charging pins to the battery were mis-aligned (bent back to shape)
- there was a massive break in an internal cable between the power switch and the mainboard (Alternatively, you can turn it on by shorting pins 2/3 of the relevant connector on the mainboard). After seeing the cost of the cable online and comparing it with the cost of device itself I half thought about (drilling holes or just swapping the switch for another existing port such as USB, Ethernet, etc... I've done it with phones before though but have 'sculpted' the switch rather than the case most of the time) using a small microswitch but obviously the solution wouldn't be elegant, light on power button wouldn't be perfect, etc...

http://www.laptoprepair101.com/laptop/2007/12/06/dc-power-jack-repair-guide/
http://www.ehow.com/facts_7611392_problems-laptop-dc-jacks.html
http://www.technibble.com/forums/showthread.php?t=37678
http://www.therailwire.net/forum/index.php?topic=26454.0
http://www.cdsparts.com/p-3212-new-acer-aspire-one-531h-ao531h-zg8-power-board-cable-50s6507003.aspx
http://www.cdsparts.com/p-3452-new-acer-aspire-one-531h-netbook-power-board-da0zg8pb6e0.aspx
http://acer--uk.custhelp.com/app/answers/detail/a_id/3009/~/hotkeys-and-key-combinations-on-aspire-one-netbooks

http://support.acer-euro.com/drivers/

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Monday, August 6, 2012

Space Saving

I've been running out of hard drive space. While I've upgraded I've also done a little bit of 'cleaning up' as well. Little did I know just how difficult this would be. With the recent increase in hard drive prices (due primarily to the Thailand floods) I (and others) have been looking at unusual sources. One of these has been purchasing portable hard drive expansion packs (hard drive and enclosures) that are on sale and removing the internal hard drive which often ends up being cheaper than purchasing the drive alone. Sounds simple, right? Not quite.

I tend to do some background on product purchases. In the past, this has held me in relatively good stead but with the advent of online marketing and reviews it seems as though everything has balanced out. Almost every single brand seems to have 'problems' and unless something is truly worthy it is unlikely to have a clean bill of health. In fact, a random sample of Amazon (and HDSentinel) reviews seemed to indicate that anywhere between 10-25% on average are dissatisfied with their purchase of electronic goods (anything from flash memory, hard drive, routers, to wireless network cards).

http://www.behardware.com/articles/862-7/components-returns-rates-6.html
http://www.hdsentinel.com/knowledgebase.php

On top of this an increasing number of companies are locking down their hardware/software which means that modification can be difficult if not impossible. Obviously, there are issues relating to consistency, security, and so on. While some compromises I understand, other's I'm not so certain about. For instance, Clickfree actually have a microchip in their enclosures (warranty void if removed) which holds the key to being able to use the internal drive as a normal drive or as a 'Clickfree' drive. Toshiba have been attempting to draw more power than standard from USB ports for their external enclosures than standard. Seagate have been (depends on the age of the enclosure) using slightly larger than normal (12.5mm as opposed to 9.5mm height drives) in their enclosures which means you can't use them as a replacement for your internal hard drive. Western Digital have even altered their circuit boards so that instead of a generic SATA out interface that leads to a USB controller/interface card which then leads to your PC the circuit board is direct to USB (I never would have believed this had I now seen the pictures on HDDGuru). I've even seen accounts of HP using non-generic PCB's which basically encrypt the contents of your drive which mean that while your data is safe if it is removed from the drive in the advent of a failure it's difficult/impossble to recover your data without skilled aide. Firmware flashing of the requisite chip seems to be the only way around this without using a different enclosure.

http://www.phonenews.com/toshiba-acknowledges-macbook-woes-canvio-usb-3-0-hard-drives-18699/
http://forum.hddguru.com/disk-with-sata-usb-adapter-remove-virtual-rom-t18492.html
http://windowssecrets.com/forums/showthread.php/125707-How-to-delete-a-CDFS-partition-on-a-hard-drive
http://forum.hddguru.com/disk-with-sata-usb-adapter-remove-virtual-rom-t18492-60.html
http://www.ted.com/
http://www.station-drivers.com/page/jmicron.htm
http://hddguru.com/software/2005.10.02-MHDD/
http://forum.hddguru.com/wd5000bmvv-connector-t16203.html

Moreover, many firms are developing tamper proof enclosures that mean that opening them up is extremely difficult without causing damage to the enclosure themselves. The general consensus seems to be a combination of higher local ambient temperature and careful prying using thing pieces of plastic/metal is the best way.

http://forums.seagate.com/t5/Other-External-products/Would-the-hard-drive-inside-a-640GB-Expansion-Portable-fit/m-p/50297
http://hardwarespot.net/computer-hardware/how-to-open-a-toshiba-portable-hard-drive-without-case-damage

While I've previously used SyncToy and other tools to run backups and syncronise drive contents I recently came across Syncback. Overall, it's just like many other backup tools. The thing I like about it is that it creates it's own backup logs (HTML format) instead of me having to create them.

http://www.2brightsparks.com/syncback/index.html

Transcoding of media files seems like an extremely simple affair and I thought that many applications would be able to handle audio syncronisation issues easily by now but that's not the case. Whether I'm using CLI (ffmpeg) or GUI (HandBrake, FormatFactory, MediaCoder, Avidemux, etc...) based tools there doesn't seem a single tool that can transcode (at an acceptable level of quality) without extra input from the end user while maintaining sync without causing abberations in the transcoded file. The simplest option seems to be a mass transcode via MediaCoder/ffmpeg and then using the MediaInfo/Avidemux/VLC in order to re-sync/edit the transcoded file back to normal. This of course, raises other concerns.

ffmpeg -i out.ogg -itsoffset 4.267 -i out.ogg -map 1:0 -map 0:1 -ar 22050 video.flv

http://www.avsforum.com/t/1098651/converting-video-files-keeping-audio-in-sync
http://www.kkoncepts.net/node/69
http://howto-pages.org/ffmpeg/
http://support.microsoft.com/kb/316992
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-vcd-dvd.html

In my case, temperatures were exceeding acceptable limits/normal parameters which meants that it would automatically trigger system shutdown. Obviously, I've worked with CPU throttling applications (I even built one) previously though so using a combination of ThrottleStop, Open Hardware Monitor, and Process Lasso I've been able to slow things and maintain a more sustainable thermal environment.
http://www.techinferno.com/downloads/
http://forum.mediacoderhq.com/viewtopic.php?t=3381
http://forum.mediacoderhq.com/viewtopic.php?f=17&t=6383
http://forums.whirlpool.net.au/archive/1141751
http://www.avidemux.org/smf/index.php?topic=10793.0
http://forum.notebookreview.com/gaming-software-graphics-cards/674100-throttlestop-expiry.html
http://www.cpuid.com/
http://www.techinferno.com/downloads/?did=41
http://openhardwaremonitor.org/
http://www.techpowerup.com/realtemp/

If you've ever used a particular brand from Jaycar you'll notice that they have some quality control issues. Recently, I once purchased a mini microSD card reader but after noticing read errors from the device I returned it for another. I noticed the same thing again but this time decided to take a closer look. Apparently, they may have a dry solder problem with what appears to be an onboard crystal oscillator.

http://en.wikipedia.org/wiki/Crystal_oscillator

I also noticed similar read issues with another product (a USB to IDE/SATA convertor) from this particular brand. As soon as it hit the 1GB file mark of a certain file copy (this only seemed to occur on one particular file transfer) it seemed to silently fail (under Windows). There are accounts of the core chip not dealing with errors correctly (under reporting information during failure) and also incorrect/un-optimal implementations. I may explore this further if I have time but I'm still working on my 'Cloud and Internet Security' report.

http://www.jmicron.com/JM20337.html
http://bigacid.wordpress.com/2008/12/08/jm20337-read-data-corruption-solution/
http://forums.seagate.com/t5/Barracuda-XT-Barracuda-Barracuda/Silent-write-failures-with-500G-SATA-in-JM20337-USB-enclosure/td-p/60970
http://answers.softpicks.net/answers/topic/reading-errors-on-JMicron-JM20337-USB-SATA-1894164-1.htm
http://www.gossamer-threads.com/lists/linux/kernel/953952
http://blog.gmane.org/gmane.linux.usb.general/page=61

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Wednesday, August 1, 2012

If Only Reading Were Easier, eBook Firmware Modifications, and More

I recently came into possession of a MiGear eBook Reader. It's not the best eBook device in the world but I got it for a price that was hard to refuse. One of the things I've discovered is that while it makes a great video/photo viewer and music playback device it's actual eBook reading capabilities needed a bit of work (the zoom function doesn't work particularly well in the default firmware which means that a lot of scrolling needs to be done because the fonts are too large or the words are too small because the there neds to be greater magnification).

Like others I've been exploring the full capabilities of the device and looking at modifying/changing the firmware to fully exploit it. The device itself is based on the Rockchip RK2738 which is often used in MP3/MP4 music devices with the rest of the device relying on inexpensive and readily available PC electronics. It is also used in many eBook readers as well which means that as long as the reader is based on the same chip you can chop and change as you like. Moreover, while it is possible for you to end up with an (inexpensive in this case) paperweight there are existing provisions to activate a recovery mode of sorts by shorting pins 29/30 on the flash chip (Based on what I've read and done it seems to be very hard to 'brick'. The product itself seems to be hobbled by the firmware than the hardware.).
http://www.rock-chips.com/index.php?lang=en

http://www.2shared.com/file/kwyAnRpZ/Ebook-2738img.html
http://mympx.org/Downloads
http://forums.whirlpool.net.au/archive/1537766
http://www.migear.biz/Downloads/MiGear_BSTE102_eBook_Upgrade_Tool_v1.rar
http://mympx.org/forum/firmware/45967-rk2738-4.html
http://www.gear2go.biz/categories/Software-upgrades/

Moreover, while you may end up with the wrong language they (the various firmware revisions) all seem to be based on the same core which means that even if you end up seeing strange characters you can almost always set it back to any arbitrary language. The irony though is that while there is a firmware update utility you need to tweak it (Hardware IDs which can be obtained from 'lsusb' under Linux and 'Device Manager' in Windows) in order to get things right.

http://www.ozbargain.com.au/node/70439

There's clearly no 'perfect firmware' out there at the moment though. I've ended up using firmware from another Chinese clone which oddly enough had better hardware (more RAM, Flash memory, FM radio, TV-out, and also a larger battery) than my device. This led to be explore the actual data sheets, various PCBs, and SDKs for this chip. Most of the time the data sheets indicated that only minor modifications/additions needed to be made to add these capabilities (I actually thought about adding more flash memory from a USB flash drive after discovering the physical size of the chips on the board and in my flash drive were identical. Try to format the flash using NTFS and not FAT16/FAT32 as it will be more resistant against potential filesystem corruption. You'll know why if you've compared these filesystems on USB flash drives previously and have not ejected properly.). While there doesn't seem to be support for Android/Linux, Lexand seemed to have released a device that uses Android/Linux and is also based on the RK2738 (here's hoping someone uploads the firmware).

http://gnn-components.com/Fuzhou_Rockchip_Electronics_Co___Ltd_-22-488.aspx
http://ananda.en.alibaba.com/product/494388542-0/7inch_Rockchip_2738_ebook_reader.html
http://tablet-news.com/2012/07/05/lexand-lt-127-and-lt-227-color-e-readers-officially-announced/
http://mympx.org/forum/general-discussion/44608-rockchip-sdk-working-links.html
http://www.mp4nation.net/forum/f27/rockchip-programming-14769/
http://www.podchasov.ru/rk27/
http://mympx.org/forum/firmware/45967-rk2738-2.html
http://mympx.org/forum/general-discussion/43348-hooray-rockchip-sdk.html
http://wiki.mobileread.com/wiki/Skytex_Primer
thttp://mympx.org/forum/general-discussion/43348-hooray-rockchip-sdk-28.html
http://www.androidtablets.net/forum/rockchip-based/439-how-unpack-repack-custom-firmwares-rockchip-rk28xx.html
http://wiki.archosfans.com/index.php?title=Dump_your_Home_Tablet_rom_and_create_a_custom_rom&action=edit&oldid=141291
http://forum.archosfans.com/viewtopic.php?f=59&t=33946
http://www.slatedroid.com/
http://en.pudn.com/downloads135/sourcecode/embed/detail575860_en.html
http://www.mobileread.mobi/forums/showthread.php?t=111836&page=3 
http://forum.archosfans.com/viewtopic.php?f=59&t=33946

While there are SDKs out there development doesn't seem to be simple especially for the 27xx series. A lot of information has needed to be reverse engineered (Rockchips don't seem to be interested in Open Source development at the moment based on what I've read.) and even then there seems to have been measures taken to reduce the chances of end user tampering. Files have clearly been 'packed' and possibly encrypted with 28xx/29xx series also having similar protection.

http://alemaxx.al.funpic.de/rk27/rkwfwpatch.html
Even viewing hidden partitions/backing up the actual firmware itself was a seeming mystery with many people just guessing at what the magical filename should be to make the partitions magically appear (I used the following command sequence to figure this out, 'strings RK2738.img | grep -i tag > tags'. Mine was 'HTC_E01.Tag' though this will obviously depend on you having a copy of the image in the first place.).

Moreover, unlike the 26xx series you can't just modify files on the hidden partitions itself. You need to unpack the image, modify the files, repack it and write the firmware to make the changes 'stick',

mkdir /media/ebook
mount -o loop BSTE102.img /media/ebook/
umount /media/ebook/

else you'll need to use something like WinRAR or WinImage under Windows.

With the firmware being relatively tedious or difficult to modify I wonder whether something like Rockbox/OpenInkpot are more viable options given time and your desired use for your device...

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

Tuesday, July 24, 2012

The Hard Drive Resurrection!

My first hard drive 'incident' occurred years ago when a friend moved a hard drive of mine while it was still working. The result was 'smoky' and resulted in a drive that would not spin up and a fried controller board. Switching boards for data recovery was simple though as the drive was of desktop size and the model fairly common. 

Since then I've sufferred all sorts of drive failures from virtually all drive manufacturers. While I haven't lost much data (I backup regularly) it has been annoying and I've learnt about hard drive technology along the way. Last year I had another drive failure. This time it was a laptop sized drive with a supposedly 'seized spindle'. I tried 'freezing it' in a sealed container and it seemed to spin up long enough for me to recover the data but after one power up that was basically all the activity that I ever saw again from this particular drive. Since I recovered the data I didn't bother with further experimentation. Recently though, some other work in data recovery brought this drive back into my mind. I opened up the drive and was reminded that even though hard drive technology has been around for decades it has definitely evolved/become more refined. Drive designs from a decade ago there were much more distinctive between drive manufacturers than now and there were sometimes aspects of drive design which could have easily been improved (such as shock absorption and chip placement). Over time, its become clearer that drives have become much more refined though and manufacturers have converged upon some similar design principles. When I opened this particular drive it was obvious how much thought was put into it; there were stickers to prevent improper screw placement (some screws could have protruded directly onto the underside of the drive platter if you weren't careful), contingencies were made to deal with the possible build up of internal condensation/contamination (packet of what appeared to be silica/cotton?), and even minor design changes to head parking areas to reduce the shock of drive movement to the extreme edges of the disc platter themselves.

Anyhow, it seems clear that there are several methods when dealing with seized spindles. One involves using a power drill, another blunt force, another involves a specialised tool to help re-align the platter/bearing bundle. I decided to use a stylus from my old Palm Vx. It seemed to work well and I was at least able to get my drive spinning relatively freely again. The next problem that I faced was head/servo movement. I checked my re-assembly several times and everything seemed to be in check. However, after careful examination I realised that a cable that led from the controller board to the head was deformed/broken which meant that power could not be sent to an electromagnet at the end of the head assembly which is ultimately used to control head alignment over the disc platters. After re-alignment head movement seemed to be back. While its clear what the problem is, I'm not sure how much further I can push this with my existing equipment. The connections/wires that need to be fixed are basically the size of pin heads. It will take a microscope and a bit of luck to be able to accurately re-connect the relevant connections.

Moreover, unlike previously where switching parts seemed to be quite simple I'm discovering that drive recovery nowadays is far more evolved than it used to be. While some parts are interchageable others aren't so easy. Based on some research it seems as though some drives may have begun to place part or all of the firmware on the actual drive itself which makes parts transfer not so simple. The firmware from the old drive needs to be extracted or procured from another location (can be trivial or extremely difficult depending on the situation/manufacturer as some publish tools/software to do precisely this while others rarely publish any supporting documentation/software at all).

I suspect the best/simplest method may be sourcing another drive for its head assembly (if you don't have specialised head removal tools you're best choice is turning the drive upside down and pushing it towards the back wall of the drive enclosure to remove it and enhance your chances of removing it without causing significant drive damage)(Obviously, you've discovered by now that you can often get by without having to resort to specialised tools a lot of the time. However, like general 'tradesman' it is far easier if you have them and you need to take extra care if you don't have them.). I'd like to know whether they alter drive heads based on drive density though? Clearly, when switching from single to multi-platter configurations this will be the case. How about switching from a single platter discs of different density though? Surely, efficiencies in mass production should mean that you use the same heads while altering only the platters, firmware, controller card, etc?

As an aside I've noticed a lot of good deals for SSDs of late. However, it's also clear that some of the drives on offer have a history of data loss as a result of dodgy controllers, firmware, etc... For the moment, I would do my homework before purchasing an SSD, hold off on the technology while it matures, and/or just use it for non-critical/read only purposes.

A word of note, if you're working with this type of equipment you should primarily be thinking about the most minimal way to get things going again rather than seeking the most elegant solution out there (at least initially). I recall working an phone that had sufferred from water damage. Everything seemed to be fine but the power switch needed to be replaced. While I managed to find a replacement from Jaycar I tried to get too cute with the repair and ended up damaging the replacement switch. Luckily, the switch was only 95 cents and the phone was relatively inexpensive.

http://en.wikipedia.org/wiki/Hard_disk_drive

http://www.overclockers.com/do-it-yourself-hard-disk-repair/
http://superuser.com/questions/44318/how-do-i-remove-a-mybooks-wd-smartware-virtual-cd-from-my-desktop
http://club.myce.com/f138/access-hard-drives-firmware-257428/#.UAoich-eVG0
http://freemyipod.org/wiki/Extracting_firmware

- as usual thanks to all of the individuals and groups who purchase and use my goods and services
http://sites.google.com/site/dtbnguyen/
http://dtbnguyen.blogspot.com.au/

The World is Full of Software Bugs

It seems as though bugs may have developed an attraction to me of late. I've discovered that 'pcmanfm' doesn't handle unmounting of drives completely cleanly and that you need to manually kill processes regularly sometimes. I've also discovered that Windows Media Player (with my configuration at least) only seems to work when the TV tuner is inserted on the original USB port that it was configured on (else it will indicate that there are no tuners currently available. Obviously, you can attempt to re-configure the tuner on another USB port but that's beside the point. This is strange behaviour.). MultibootUSB needs 32-bit of 7-Zip to be installed to be run (even if you have installed the 64-bit version on a 64-bit Windows system). Otherwise, you end up with a never ending series of errors. Tip, you need to kill MultibootUSB first before killing 7-Zip else it will keep on trying to re-spawn that process.


While the following is not a bug I find it 'annoying'. The versions of Acronis TrueImage distributed by Seagate/Western Digital are incompatible (retail and other version are fine). I've obviously tried various Open Source options in the past but none come near the performance/compression balance that currently exists in this product and several other proprietary options.

While searching for a new external hard drive I came across the following...

http://www.phonenews.com/toshiba-acknowledges-macbook-woes-canvio-usb-3-0-hard-drives-18699/
http://www.theregister.co.uk/2012/07/23/100w_usb_power_delivery_specification/

I was recently playing around with the idea (and the practice) of turning Android phones into servers. It was not without its difficulties though. On most mobile computing devices there are forms of so called speed stepping technologies to help increase battery life. It's obviously re-appeared on Android as well but not without some of the problems that plagued other platforms. I once recall using a power control utility application on my old Android phone which underclocked it to such an extent (1/3 of it's full capacity) that I couldn't answer phone calls because there weren't enough CPU cycles for user space applications (such as unlocking the phone itself so that I could take a call) while playing music. Admittedly, the hardware specifications were minimal (it was an extremely early and inexpensive Android phone) but I would have thought a bit more thought would have gone into it prior to deployment (I 'accepted' the 'default settings' believing that that would have been adequate).

I obviously tried SSHDroid but like others I came across what were seemingly stability problems. Upon further examination though I found a lot about wireless and power control technologies. I think a lot of the problems that I was experiencing were as a consequence of power saving software (the above will likely make more sense to you now) which may have led to SSHDroid shutting down randomly and regularly. However, in my research I also came across a file transfer application called SwiFTP. In it, was option to shutdown most power saving behaviour. By enabling this, I've seen been able to achieve relatively stable connections (hours at a time).


You can lock up (somewhat) your Android phone by using firewall such as DroidWall.


Strongly suggest you have reliable equipment if you do ANY wireless experimentation. Obviously firmware changes can have significant impacts upon devices. One thing I underestimated though was how much of an impact 'raw power' played on connection stability. In the past (and recently) I was playing around with the idea of deliberately changing architecture to maintain wireless security (as opposed to relying on pure 'Faraday Cages' and other anti-TEMPEST techniques). By using the concepts of absorption, superposition, and reflection we can manipulate wireless signal pathways (very similar to some of the techniques that are used to develop low visibility/stealth aircraft). The results of these experiments indicate that putting this theory into practice will be less trivial than I had originally anticipated though (the intensity of a signal is conversely proportional to the inverse square of the distance between the source and destination if I recall my physics correctly).

List Biggest Employers in New Zealand, Random Stuff, and More

#################### START new-zealand START #################### !!!!!!!!!!!!!!!!!!!! DATE Thu 13 Aug 12:54:23 AEST 2026 DATE !!!!!!!!!...