Coder Social home page Coder Social logo

Bricked :( about wibox HOT 5 CLOSED

segator avatar segator commented on September 22, 2024
Bricked :(

from wibox.

Comments (5)

segator avatar segator commented on September 22, 2024 1

In case helps if you had same problem as me after flashing following duhow instructions device is not booting and in serial console you get just Uncompressing Linux... done, booting the kernel.

you can unbrick the device with minicom.
after connect to power you need to instant press enter to stop the kernel booting (you only have 1second!!, be ready!) and boot on uboot shell.

then run:

sf probe
loady 0xC1000000 # after execute this Ctrl+A Z then upload file using "YMODEM protocol" choose your backup of mdt4
#the upload will take arround 15minutes (you will see a progress dialog)
#after finish at this point the backup is loaded at ram
#we need to erase first the sector of the flash we are going to rewrite.
sf erase 0x00460000 00b10000
sf write 0xC1000000 0x00460000 00b10000
#then reboot device 

from wibox.

duhow avatar duhow commented on September 22, 2024

You are still able to use u-boot to attempt recover this (Hit Enter key to stop autoboot) , although I don't have the commands to fully do it...
What firmware version do you have?

from wibox.

segator avatar segator commented on September 22, 2024

I tried to use inside bootu yload(ymodem) at the address where Mtd4 starts to upload the backup but after reboot same issue, not sure if i need to do something else to persist

from wibox.

duhow avatar duhow commented on September 22, 2024

Can you try flashing the original CRAMFS file?
Also you can try to update bootargs and change init=/bin/sh (just be sure to not saveenv to not persist the changes, or undo them when finishing tests)

from wibox.

segator avatar segator commented on September 22, 2024

Yes in fact after the bricking I were trying to put the original CRAMFS file (the backup I did following your instructions)
So what you mention of replacing init then full command should be

setenv bootargs console=ttySGK2,115200 mem=52M init=/bin/sh root=/dev/mtdblock3 rootfstype=squashfs mtdparts=gk_flash:256K(uboot),64K(env),1920K(kernel),2240K(rootfs),11328K(usr),512K(mnt),64K(cfg);sf probe;sf read 0xc1000000 0x50000 0x1E0000;bootm 0xc1000000

seems same result on running /bin/sh could be that the console=ttySGK2 is not printing linux console on the serial port? in this case how I could identify which is the console?

thats the output

console init done
DRAM:  64 MiB
Flash: [XM25QH128A] USE 4X mode read and 4X mode write
16 MiB
NAND:  [No SPI nand]
SF:    16 MiB [page:256 Bytes] [sector:64 KiB] [count:256] (XM25QH128A)
In:    serial
Out:   serial
Err:   serial
Net:   Int PHY
Hit Enter key to stop autoboot:  0
GK7102S # setenv bootargs console=ttySGK2,115200 mem=52M init=/bin/sh root=/dev/mtdblock3 rootfstype=squashfs mtdparts=gk_flash:256K(uboot),64K(env),1920K(kernel),2240
[PROCESS_SEPARATORS] setenv bootargs console=ttySGK2,115200 mem=52M init=/bin/sh root=/dev/mtdblock3 rootfstype=squashfs mtdparts=gk_flash:256K(uboot),64K(env),1920K(0
SF:    16 MiB [page:256 Bytes] [sector:64 KiB] [count:256] (XM25QH128A)
put param to memory
mem size (52)
total mem size (64)
bsb size (1)
usr size (0)

the kernel image is zImage or Image
entry = 0xc1000000
## Transferring control to Linux (at address c1000000)...

Starting kernel ...

machid = 3988 r2 = 0xc0000100
Uncompressing Linux... done, booting the kernel.

from wibox.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.