Skip to content

USB image for Gx6605s development board #96

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

Open
mtuxpe opened this issue Aug 18, 2020 · 13 comments
Open

USB image for Gx6605s development board #96

mtuxpe opened this issue Aug 18, 2020 · 13 comments

Comments

@mtuxpe
Copy link

mtuxpe commented Aug 18, 2020

I am trying to build a new USB image for Gx6605s development board:
git clone https://github.com/c-sky/buildroot.git
cd buildroot
git checkout e61b2fbafe1c53237ea3f9b0c57d6ae795e2027f
make CONF=thead_610_compat_next_glibc_br_defconfig
cd thead_610_compat_next_glibc_br_defconfig
make
After build :
ls -al images
-rw-r--r-- 1 msam msam 5285112 ago 18 08:44 Image
-rw-r--r-- 1 msam msam 243740 ago 18 08:39 linux-4.9.56.patch.xz
-rw-r--r-- 1 msam msam 3824 ago 18 08:32 readme.txt
-rw-r--r-- 1 msam msam 314572800 ago 18 09:01 rootfs.ext2
-rw-r--r-- 1 msam msam 20377600 ago 18 09:01 rootfs.tar
-rw-r--r-- 1 msam msam 76904368 ago 18 08:57 toolchain_thead_610_compat_4.9_glibc_br_defconfig_e61b2fbafe1c53237ea3f9b0c57d6ae795e2027f.tar.xz

What is the command line for manually generating USB image?
Or:
What is the setting on file thead_610_compat_next_glibc_br_defconfig to generate an USB image automatically?

@aisk
Copy link

aisk commented Sep 10, 2020

I thought the current master branch have removed the support. I generated the image from older commit.

@Dizgah
Copy link

Dizgah commented Sep 10, 2020

@aisk: could you please mention the commit you are using for generating image?because I have the same problem with the master branch!

@aisk
Copy link

aisk commented Sep 10, 2020

@Dizgah I forked this repo on their gitlab mirror, which the maintainer run CIs to produced the binaries, and re-trigger the CI to get the binaries. This pipeline is the last commit which contains the USB image: https://gitlab.com/epoll/buildroot/-/pipelines/155882660 .

@Dizgah
Copy link

Dizgah commented Sep 10, 2020

@aisk, Thank you so much, I'm going to test it, but I have no idea why there are so many differences between the master and master_backup branch! While (same as usual) the master is the main release branch, there is nothing related to post-image for generating usb.img there and even it doesn't mention anywhere!

@mtuxpe mtuxpe closed this as completed Sep 10, 2020
@mtuxpe
Copy link
Author

mtuxpe commented Sep 10, 2020

@aisk Thanks for feedback

@aisk
Copy link

aisk commented Sep 11, 2020

@Dizgah I have no idea too 😢

@Dizgah
Copy link

Dizgah commented Sep 11, 2020

@aisk even building based on the commit mentioned by you I don't have the image file.
This is what I did:

git clone https://gitlab.com/epoll/buildroot.git
git checkout b6cc3bd7
make CONF=csky_610_gx6605s_4.9_uclibc_br_defconfig 2>&1 | tee build.log

I used csky_610_gx6605s_4.9_uclibc_br_defconfig configuration because I found it the only one related( Also I log the output to the build.log).
and this is the content of my output/images:

.:
total 24M
-rw-r--r-- 1 user user 264 Sep 10 16:54 csky_buildroot_version.txt
-rw-r--r-- 1 user user 23M Sep 10 16:56 csky_toolchain_defconfig_b6cc3bd75ff8f96e632bb46bb7cec1427a7db136.tar.xz
-rw-r--r-- 1 user user 1.5M Sep 10 16:57 rootfs.tar

it's similar to the output based on the last commit on master_backup branch.
while the last commit on the master branch produced this:

.:
total 401M
-rw-r--r-- 1 user user 3.5K Aug 20 11:57 readme.txt
drwxr-xr-x 2 user user 4.0K Aug 20 12:10 hw
-rw-r--r-- 1 user user 61K Aug 20 12:19 linux-custom.patch.xz
-rw-r--r-- 1 user user 3.3M Aug 20 12:43 uImage
-rw-r--r-- 1 user user 6.0M Aug 20 12:43 Image
-rw-r--r-- 1 user user 73M Aug 20 13:20 toolchain_thead_610_compat_next_glibc_br_defconfig_.tar.xz
-rw-r--r-- 1 user user 300M Aug 20 13:20 rootfs.ext2
-rw-r--r-- 1 user user 19M Aug 20 13:21 rootfs.tar

./hw:
total 12K
-rw-rw-r-- 1 user user 216 Jan 12  2020 run.sh
-rw-rw-r-- 1 user user 1.6K Jan 12  2020 gx6605s.dts.txt
-rw-rw-r-- 1 user user 759 Jan 12  2020 gdbinit.txt

As you can see there are no rootfs.ext2 nor uImage in the output directory using b6cc3bd7 commit.
I'm using Ubuntu 18.04 and I have installed all required dependency.
Then do you have any idea what the problem is? Did I do something wrong or ignored a required step?

@aisk
Copy link

aisk commented Sep 11, 2020

@Dizgah I'm not dig into this, but I think maybe there was some steps which is runned by the gitlab ci runner, maybe you can check the gitlab config.

@mtuxpe Hi I think this repo is used as a forum, not a regular git repo, so maybe we should keep this issue open, for maybe we can help someone in future?

@Dizgah
Copy link

Dizgah commented Sep 11, 2020

@Dizgah I'm not dig into this, but I think maybe there was some steps which is runned by the gitlab ci runner, maybe you can check the gitlab config.

@mtuxpe Hi I think this repo is used as a forum, not a regular git repo, so maybe we should keep this issue open, for maybe we can help someone in future?

could you please mention commands you are using for building your image? and the content of the result output directory?
And your OS version also?

I agree with your other suggestion too.

@aisk
Copy link

aisk commented Sep 11, 2020

@Dizgah I have not running any command, just re-triggered the gitlab pipeline. The commands should be in https://github.com/c-sky/buildroot/blob/master/.gitlab-ci.yml I thought. The output was removed by gitlab, I don't know the contents, but it containes the file which I dded into my borad.

@mtuxpe mtuxpe reopened this Sep 11, 2020
@Dizgah
Copy link

Dizgah commented Sep 11, 2020

@aisk thank you for clearing me, I am not experienced with Gitlab, then could you please explain to me how can I retriger that pipeline?

@aisk
Copy link

aisk commented Sep 11, 2020

Sorry, I'm not maitainer of this repo.

@aisk
Copy link

aisk commented Apr 15, 2024

@Dizgah I wrote a blog post for how to build the image: https://aisk.github.io/posts/build-csky-gx6605s.html

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

3 participants