Skip to content
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

Problem flashing in Ubuntu (14.04, 14.10, 15.04 and also 18.04 LTS) #3

Open
rgipd opened this issue Feb 6, 2019 · 5 comments
Open

Comments

@rgipd
Copy link

rgipd commented Feb 6, 2019

Hello,

I know this repo seens to be an outdated version, but I was trying to flash alpine with your last release and with the cloned CHIP repo (https://github.com/Project-chip-crumbs/CHIP-SDK).

With a lot of Ubuntu versions, installed as Vagrant, Parallels VM or even local installation, using USB 2.0 ports, I couldn't flash Alpine Linux properly from you latest release.

Below is the output:

$ sudo BUILDROOT_OUTPUT_DIR=alpine/ ./chip-fel-flash.sh
BUILDROOT_OUTPUT_DIR = alpine/
== preparing images ==
PADDED_SPL_SIZE=0x000000c4
0+1 records in
1+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,00348706 s, 1,2 GB/s
UBOOT_SIZE=0x00400000
PADDED_UBOOT_SIZE=0x400000
0+0 records in
0+0 records out
0 bytes copied, 8,7247e-05 s, 0,0 kB/s
echo Configuring Video Mode
reset
Image Name:   flash CHIP
Created:      Wed Feb  6 09:00:47 2019
Image Type:   ARM Linux Script (uncompressed)
Data Size:    1022 Bytes = 1.00 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 1014 Bytes = 0.99 KiB = 0.00 MiB
== upload the SPL to SRAM and execute it ==
waiting for fel...OK
== upload spl ==
== upload u-boot ==
== upload u-boot script ==
== upload ubi ==
100% [================================================] 48234 kB,  722.0 kB/s 
== execute the main u-boot binary ==
== write ubi ==
flashing.......................................................................................................TIMEOUT
ERROR: could not flash:

Always I got timeout.
The normal flash (gui, server, buildroot) works flawless.
Do you know anything how to solve this issue?

By the way, Alpine Linux 3.9 with armv7 support, you are going to support it?

Thank you!

@marvinroger
Copy link
Owner

You can try one of the earlier versions, that should be working. I don't have a C.H.I.P. since 2017, so I can't help here.

If you want to upgrade Alpine, you can simply follow this: https://wiki.alpinelinux.org/wiki/Upgrading_Alpine

@rgipd
Copy link
Author

rgipd commented Feb 6, 2019

Ok, I will let you know.
Do you know how you made the alpine images?

@rgipd
Copy link
Author

rgipd commented Feb 6, 2019

PS: All the 95 releases are the same binaries =/
Maybe the daily build removed some years ago. Do you have any other release or maybe a HOW-TO on how make an alpine for chip?

Thanks

@marvinroger
Copy link
Owner

Well, the build was daily and automated, in case something was updated from the buildroot image. It seems like it was not!

I am sure the image worked when I tried it. I remember there was an issue with some flash chips working with some images, but not all, maybe that's the case here.

I don't have any how-to, the build script is here: https://github.com/marvinroger/chip-alpine/blob/master/build.sh

@rgipd
Copy link
Author

rgipd commented Feb 6, 2019

Thank you, but sadly it's not working (3 CHIPs board here).
Even the build.sh is not working anymore, even updating some links from nextthingco to new ones.

Maybe I try someday understand the u-boot and the CHIP update process with rootfs to be able to put new software on it.

Thanks anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants