@Pavel-Metrokhin какая-то странная ситуация, вы открещиваетесь от дальнейшей поддержки девелоперской платы, выпущенной вашей компанией как раз для разработки в случае, если дефолтное состояние было нарушено (в моем случае - стер загрузчик, причем стер средствами нативного кода, зашитым при покупке самой платы), при этом проблема не возникла из неоткуда, а наблюдалась с самого начала получения мной платы (наша ранняя беседа в хелпдеске) - и, с учетом, частоты вашей поддержки я искал пути решения проблемы, которая не позволяла мне пользоваться полноценно покупкой. Ваш бутлоадер мне помог стартовать плату, но bootcmd по умолчанию настроен на tftp инициализацию, при покупке не было указано, что для работы платы требуется ваш док, я использую свои макеты, не вижу смысла покупать новую плату из-за того, что ваша компания не дает компетентной поддержки
Posts made by Ilya Mordasov
RE: Copy firmware from usb
RE: Copy firmware from usb
@cas Sure I read this docs and didn't have troubles with it, but now, when I choose option 2 (Flash firmware from USB storage) I stuck with TIMEOUT issue
*ERROR: CTL:TIMEOUT X BBB_reset usb_control_msg: request: 0xFF, requesttype: 0x21 value 0x0 index 0x0 length 0x0 ERROR: CTL:TIMEOUT X
I found out that usb works fine if I reset USB bus, so that I enter in command line mode and execute the commands I wrote above.
If I put my firmware to the address 0x80000000, that I have LZMA error (I guess it's okay, because it seems to me uboot is there), so now I put omega2.bin to 0x80800000, and it's started booting, but returned me to the first screen (forgot to log it), of course, after rebooting my RAM is free, so how can I transfer omega2.bin to local storage to boot from firmware?
Here is my log file after bootm 0x80800000
Copy firmware from usb
I can't install firmware from usb storage, always stuck. I entered in boot's console mode and executed this commands:
fathead usb 0:1 0x80000000 omega2.bin // this copy my omega2 file into RAM starting with 0x80000000
after this my omega is rebooting and I see the welcome screen again.
upd: according to log file
FAT: 7078054 Bytes read Omega2 # bootm 0x80000000 ##Booting image at 80000000 ... Image Name: MIPS LEDE Linux-4.4.46 Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1311622 Bytes = 1.3 MB Load Address: 80000000 Entry Point: 80000000 Verifying Checksum ... OK Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover
how can I transfer omega2.bin file from usb to local storage of omega to boot from this one? I'm not able to use ethernet
Omega2 can't recognise the SPI flash
Hi, I previously accidentally erased my flash with uboot, and don't have backups. So I decided to compile from this repo https://github.com/OnionIoT/omega2-bootloader new boot loader. Everything is ok, and I got uboot.bin
After that I upload this uboot.bin to my SPI flash (it's a SOIC8 W25Q128FV) via flashrom, but flashrom couldn't upload it successfully because the firmware size didn't match flash's size, so I truncated this file to get expected size and tried again. Flashrom flashed the uboot.bin file and verified it without errors. Next, I soldered it back to omega2 (I remembered where was the key) and now my console shows only this
I checked the soldered pins, everything is ok, maybe I missed something?
And one more question: I found my old logs, there was W25Q128BV recognised chip instead of W25Q128FV (this is marked on the chip)
Or may someone upload the backup of boot loader for omega2 (not plus)
RE: Flash boot loader via flashrom, image doesn't match the flash chip's size
@Douglas-Kryder for what? Pine is just simple dev board, ok, raspberry shows the same error, should I go to raspberry forum? I use flashrom, pine64 is connected by spi, and is used for communication only
upd: I resized uboot.bin up to required size and flashed it without errors, tomorrow I will solder it back to omega2 and test it
Flash boot loader via flashrom, image doesn't match the flash chip's size
I'm trying to flash compiled from here https://github.com/OnionIoT/omega2-bootloader the new bootloader via flashrom.
Flashrom recognised my spi flash
root@pine64:~# sudo flashrom -p linux_spi:dev=/dev/spidev0.0 flashrom v0.9.9-rc1-r1942 on Linux 3.10.105-0-pine64-longsleep (aarch64) flashrom is free software, get the source code at https://flashrom.org Calibrating delay loop... OK. Found Winbond flash chip "W25Q128.V" (16384 kB, SPI) on linux_spi. No operations were specified.
But when I try to upload uboot.bin I get an error:
root@pine64:~# flashrom -w /home/ubuntu/uboot.bin -p linux_spi:dev=/dev/spidev0.0 flashrom v0.9.9-rc1-r1942 on Linux 3.10.105-0-pine64-longsleep (aarch64) flashrom is free software, get the source code at https://flashrom.org Calibrating delay loop... OK. Found Winbond flash chip "W25Q128.V" (16384 kB, SPI) on linux_spi. Error: Image size (173544 B) doesn't match the flash chip's size (16777216 B)!
How to resolve it?
RE: How to flash uboot after full erasing?
Yes, I already read this one, but it’s not my case. I erased everything: bootloader, kernel, firmware. Seems, my omega is empty.
Theoretically, i could flash uboot via some JTAG, but I have to resolder spi flash to do that. Moreover, guess it’s a BGA chip and I’m not familiar with soldering bga.
What I have now is the connection between my laptop and this board over serial (which even shows nothing). My question is the way to reflash uboot over serial with clear Flash memory
How to flash uboot after full erasing?
I accidentally erased everything on my omega2 via console
is there way to flash boot loader again, cause after that I got brick, even led doesn't blink. I only see that something like CP2102 (my serial on omega) connected to my laptop.
RE: What is the stable firmware version for omega2?
Thanks for your reply. I thought the same that 0.1.10 is more stable that previous, looked at changelog. But at first, I stucked in issue when I have to set internet connection via browser. Not always I see my ssid in the available networks list and usually type it manually. Even after that when I’m pressing configure it can freeze in this half-state. I’d prefer to set it using wifisetup over ssh or console.
Also I tried to use lede repos instead of onion’s, but with it I got error relocating errors for wget and missed libencrypt.so
Traceroute shows that I have access to the internet.
But to be honest, I use my own extension board, but I’m not sure this is the reason. If I had the problem with it my o2 wouldn’t work. And o2 gets 3.3v of power and enough current
Yep, I created ticket on onion’s helpdesk and sent them logs.
What is the stable firmware version for omega2?
I installed the latest version 0.1.10-b160 via usb flash drive. But it has lots of bugs, I can’t to execute oupgrade and opkg update, always getting the problem something like “cannot connect to repo.onion.io”. wget brings the problem too with some library, always stucked in “segmentation failed” error (use console for logging). Tried previous version the same problems. Wifi is set, can ping some web sites and connect via ssh
Some issues with omega2
Hi. I ran my omega2 and got some strange behaviors. Firstly, I could not set my WiFi in web wizard. When I choice my ssid and entered password my omega stucked in configure status, but in my serial log I see kernel panic. I tried several times. After that I decided to recover firmware from usb storage. I uploaded v0.10 to the storage, plugged to omega and restart it. Next I choice option 2(recover from usb). Everything was good. I connected to omega over ssh and set WiFi as wifisetup add ...
After that my omega connected to Internet. Ping and wget are working. I decided to update omega using opkg update, but got fatal errors couldn’t resolve http://repo.onion.io/... I found some info that I need to change on https:// and info how to change. I did this suggestion but have the same issues
I also tried different firmwares, the same issue.
RE: Using SD card on Omega2 not plus
Ghent The Slicer, thanks for your reply. Just wanted to know) BTW, maybe is it possible to use NOR/NAND flash to expand the storage? I mean can I reconfig the system to recognize additional storage on startup? where I could install some packages (i.e. gcc or something else)
Using SD card on Omega2 not plus
Is it possible to use it with subject or it only works with Omega2+. My board has sdcard footprint, I guess both Omega2 and Omega2+ has the same revision of board design, but maybe is there a chance to use sd? I meant hypothetical, I know there is no slot for sd, but it's not a problem for me to solder it
RE: Onion's AP doesn't work
Yes, first of all I looked at the guide above. Nothing happened to me.
A few times my board is stabilized and I found this access point, but couldn't setup my wifi. usually I can't connect to board (led is always blinking). I tried to reset board tied RST pin to 2.5v pin for about 10 seconds, my issue stayed unresolve. Even though I connected to the board, I usually was losing my connection even I didn't do anything.
Onion's AP doesn't work
Today I got my onion 2 board.
Plugged Vin to 3.3v 500 mA. LED is off. I was waiting about 5 minutes, nothing changed. I used drop down regulator ams1117-3.3, which has up to 7V of Vin and Vout 3.3v up to 800 mA. My input source is 5v 500mA.Increased input source up to 1A and led is on, but I see a strange behaviour. When I powered it the led was on about 10 seconds after that it started blinking. About 20 minutes have passed and it still blinking, moreover It's blinking that stops blinking, led is off, than led is on for a few seconds and start blinking again. Since I have powered this I haven't seen AP something like Omega-XXXX