c-sky / forum

C-SKY Linux 论坛,更多资料请访问 c-sky.github.io
https://c-sky.github.io
32 stars 4 forks source link

USB image for Gx6605s development board #96

Open mtuxpe opened 4 years ago

mtuxpe commented 4 years ago

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 commented 4 years ago

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

Dizgah commented 4 years ago

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

aisk commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

@aisk Thanks for feedback

aisk commented 4 years ago

@Dizgah I have no idea too 😢

Dizgah commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

@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.

Dizgah commented 4 years ago

@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 commented 4 years ago

Sorry, I'm not maitainer of this repo.

aisk commented 5 months ago

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