-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new brick on the block :-( #35
Comments
Ouch. Mkswap just clears the partition, swapon activates it. You just invalidated swap partition and did not actually activate a new one. FWIW I did echo disk (and mem) to state and mem did nothing while disk put it to sleep. IIRC. |
%$&^%#@$!^%#$!&^#%! |
but it should detect the partition is empty and boot normally |
You did not mess up main filesystem so there is chance it can be recovered. I'll take a look tonight at what happens and whether it's possible to blindly do firmware update. You could put nx500.bin in the card and boot? |
good idea, doing now. |
In the worst case take it to service and say you mistakenly popped out the battery during firmware update. And hope for the best :) |
yeah. And lose at least two weeks waiting for it to be fixed. ^%#&^%@!#&^!%*&!@%#&!^@%# |
Also, be patient - let it idle for 3 minutes in any test |
how long did it take first time in recovery? |
Well, you can always also brick your other camera without waiting :D sorry |
A minute or so |
But firmware update might take longer |
I works have to see what gets started in restore mode and whether it checks for any file on SD card. Might need something like adj file to start update |
the adj files are read by di-camera-app :-(, and it is not up. |
nope. nothing doing |
^%!@^#%!&@^%#*&! |
ok let us judge coolly. I did not touch bootloader nor the uboot partition. So there should be some sort of kernel loaded - I think. In the kernel command line there is a rootwait keyword - any idea what it does and if there's some sort of timeout? |
can you check what is the kernel command line? |
ok the lens cover was on - when I took it off, I can see the image. |
T-kernel is running you are probably in restore mode. I can check it out after 22h. I'll ping you if it's OK |
yep, thx. But I won't be able to stay up too long tonight - tomorrow I have a long road ahead tomorrow and leaving early. Will be back Sunday. |
Ok, I'll take a look and document it here, if I find anything interesting. I'll also take a look at boot loader. |
I dumped the bootloader strings:, here is an extract:
but I need a special UART through micro-USB cable to get at it... |
Like this one? http://forum.xda-developers.com/showthread.php?t=1901376 |
The ready-made is not good. yes, something like the one in the xda. Looks like I need to acquire some stuff. |
Not sending in the camera yet. Going to try to build a USB - UART cable to see if I can get to the boot console. I am ordering the parts I need online, hope to get them this week. If this works I won't need to send it in. |
Just out of curiosity: which special UART cable have you tried? I've made some attempts to get at the bootloader with a micro-USB-resistor serial cable here: ge0rg/samsung-nx-hacks#7 I performed a "reboot" on the NX500 with 150K and 620K resistors, and got no response :( |
None - yet. I presume you looked at this. |
I've got a 3.3V UART cable attached to a Micro-USB port with selectable 150K/620K for some earlier smartphone bootloader work. Now I've tried rebooting again with both resistor values, listening on the line at 115k2 and 9k6 and pressing Enter various times. Also tried to interact with the NX500 UART ports /dev/ttyAMA0 and AMA1 (115k2 and 9k6 respectively, according to stty -F dev). There is zero communication going on, and not even the typical mismatch-baudrate garbage seen on bootup. |
I would basically pull the battery, plug the cable, ensure 115K is set on cutecom / minicom and then put in the battery. |
|
I tried with factory made usb-otg just to test - the camera acts as if was plugged into PC and unmounts the SD card. Same thing regardless of power state and battery. |
well, I just changed my order to mouser: now I ordered the 80.6K, 102K, 121K, 150K, 255K, 301K, 523K, 619K. One of them just has to work. (look here to see what they trigger on the chip). |
BTW you need to connect 4 pins on the usb side: DM, DP, ID and GND. The resistor should be between ID and GND. |
Another thing to test is to make the cable provide Vcc as well from a charger. |
If this works out it could be more important than all the other hacks. |
FedEx will hold the package for me to pick it up this Friday. Looks like I have a busy weekend ahead. |
got the package. This weekend I will do hardware hacking - for a change. |
Total failure. Wasted weekend. :-( |
It was a long shot. Did you try it with working nx500 in factory mode? |
no - I just worked on the brick. Working on a working NX500 is pointless since I wanted the method to work on the bricked one. :-( I give up - for now. I will send in the camera. What was the method to update the hibernation image again? |
To update hibernation (https://github.com/ottokiksmaler/nx500_nx1_modding/blob/master/doc/Update_hibernation_image.md) Regarding edje files, there is a decompiler in standard development package but main file for di-camera-app on nx500 contains a file (nx500 config or similar) that resides above the current directory so the decompiler gives up. You need to either recompile it or binary edit checks for .. in it (IIRC there are two). But this made me wary of recompiling since they did produce invalid file in the first place. Also, there are copyright notices that the files are proprietary so I stayed clear. |
I patched edje_decc (could not recompile) and the missing file is now decompiling. It is actually just selecting camera model:
|
in the other files there is only one copyright notice, BSD-style. So no restrictions. you can see for yourself. NB I also included the patched decompiler |
Yes, that's the one. |
so, any chance to add menu entries? - assuming we force hibernation update. |
I don't know, didn't try it. But edje files don't do much on the own. They do contain quite a lot of lua scripts but in the end they just invoke hooks from main cpp file. That is good as it can enable a way to trigger safely (relatively) the di-camera-app operations, but I'm not sure how one world go about adding new entries to menu (after seeing /dev/log_main it's quite possible that menu levels and structures are hard coded in di-camera-app but I didn't have time to check - it would mean that the same thing happens on menu 2 submenu 3 option 4 regardless of what's in edje files). |
Also, AFAIK we don't need hibernation update to test - just rescue mode and restart. |
@ottokiksmaler What would be nice would be to develop a generic hook into the camera menu, that opens additional submenus. What do you think? Would this be feasible? |
I don't know, didn't get into it that much, never meant to modify internal menus. And next 10 days or so are hellish for me on work (we have a hard deadline) so I have next to no time for anything :( |
Camera will be given to the retailer for repair either tonight or tomorrow. In the meantime I am back on my own cam (which will be sent afterwards for the power button fix). |
@ottokiksmaler, I think I messed up. I did that:
pulled battery
When I put the battery back in the led turns on, screen backlight comes on and that is it.
Ideas?
power off button does nothing: turns on camera but does not turn it off.
The text was updated successfully, but these errors were encountered: