[opensuse-arm] rock64
Hello, I'm trying to get openSUSE running on my rock64 2GB SBC. I've tried to follow the HCL guide from here: https://en.opensuse.org/ HCL:Rock64 but things must have changed in the github repo. There are no rpm's in the repo so the rest of the process doesn't work. I used xzcat/dd to write the image to both emmc & sd from here: http:// download.opensuse.org/repositories/devel:/ARM:/Factory:/Contrib:/Rockchip/ images/openSUSE-Tumbleweed-ARM-JeOS-rock64.aarch64-2018.05.24-Build5.1.raw.xz but the board won't boot. I don't get any output on the serial console. Could someone provide some guidance? Thanks. Mark -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hello Mark, Am 05.06.2018 um 18:40 schrieb Mark Petersen:
I'm trying to get openSUSE running on my rock64 2GB SBC.
I've tried to follow the HCL guide from here: https://en.opensuse.org/ HCL:Rock64 but things must have changed in the github repo. There are no rpm's in the repo so the rest of the process doesn't work.
You're misreading Matwey's instructions: He is suggesting to extract two RPMs (listed as prerequisites) _into_ the git repo, not from it. A search for u-boot-rock64 still comes up empty on OBS, and upstream U-Boot doesn't seem to have it either, so I can't package u-boot-rock64 myself yet either. There is an evb-rk3328 upstream though that could serve as starting point, if you want to contribute to upstream U-Boot and openSUSE. Wherever from, you need a suitable u-boot.bin. No need to extract mkimage that way, just run: zypper in u-boot-tools Cheers, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On Tuesday, June 5, 2018 1:36:48 PM CDT Andreas Färber wrote:
Hello Mark,
Am 05.06.2018 um 18:40 schrieb Mark Petersen:
I'm trying to get openSUSE running on my rock64 2GB SBC.
I've tried to follow the HCL guide from here: https://en.opensuse.org/ HCL:Rock64 but things must have changed in the github repo. There are no rpm's in the repo so the rest of the process doesn't work.
You're misreading Matwey's instructions: He is suggesting to extract two RPMs (listed as prerequisites) _into_ the git repo, not from it.
A search for u-boot-rock64 still comes up empty on OBS, and upstream U-Boot doesn't seem to have it either, so I can't package u-boot-rock64 myself yet either.
There is an evb-rk3328 upstream though that could serve as starting point, if you want to contribute to upstream U-Boot and openSUSE.
Wherever from, you need a suitable u-boot.bin.
No need to extract mkimage that way, just run: zypper in u-boot-tools
Cheers, Andreas
Andreas, Thanks for the reply. I missed the part about the prerequisites. I'm not very good at compiling. - Building u-boot is probably beyond my abilities. - I tried briefly, but things like this bog me down & I lose interest. update-alternatives: using /usr/bin/aarch64-suse-linux-gcc-7 to provide /usr/ bin/aarch64-suse-linux-gcc (aarch64-suse-linux-gcc) in auto mode make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- make: aarch64-linux-gnu-gcc: Command not found - Do I make a symlink? or edit a file? Oh well. If someone needs it, I'd be happy to do some testing with my rock64. Mark -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 06/06/18 01:55, Mark Petersen wrote:
On Tuesday, June 5, 2018 1:36:48 PM CDT Andreas Färber wrote:
Hello Mark,
Am 05.06.2018 um 18:40 schrieb Mark Petersen:
I'm trying to get openSUSE running on my rock64 2GB SBC.
I've tried to follow the HCL guide from here: https://en.opensuse.org/ HCL:Rock64 but things must have changed in the github repo. There are no rpm's in the repo so the rest of the process doesn't work.
You're misreading Matwey's instructions: He is suggesting to extract two RPMs (listed as prerequisites) _into_ the git repo, not from it.
A search for u-boot-rock64 still comes up empty on OBS, and upstream U-Boot doesn't seem to have it either, so I can't package u-boot-rock64 myself yet either.
There is an evb-rk3328 upstream though that could serve as starting point, if you want to contribute to upstream U-Boot and openSUSE.
Wherever from, you need a suitable u-boot.bin.
No need to extract mkimage that way, just run: zypper in u-boot-tools
Cheers, Andreas
Andreas,
Thanks for the reply.
I missed the part about the prerequisites.
I'm not very good at compiling. - Building u-boot is probably beyond my abilities. - I tried briefly, but things like this bog me down & I lose interest. update-alternatives: using /usr/bin/aarch64-suse-linux-gcc-7 to provide /usr/ bin/aarch64-suse-linux-gcc (aarch64-suse-linux-gcc) in auto mode
make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- make: aarch64-linux-gnu-gcc: Command not found - Do I make a symlink? or edit a file? Oh well.
You need to have your cross compiler toolchain in your $PATH. Regards, Matthias
If someone needs it, I'd be happy to do some testing with my rock64.
Mark
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On Jun 06 2018, Matthias Brugger <mbrugger@suse.com> wrote:
I'm not very good at compiling. - Building u-boot is probably beyond my abilities. - I tried briefly, but things like this bog me down & I lose interest. update-alternatives: using /usr/bin/aarch64-suse-linux-gcc-7 to provide /usr/ bin/aarch64-suse-linux-gcc (aarch64-suse-linux-gcc) in auto mode
make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- make: aarch64-linux-gnu-gcc: Command not found - Do I make a symlink? or edit a file? Oh well.
You need to have your cross compiler toolchain in your $PATH.
That won't help if you use the wrong name. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On Wednesday, June 6, 2018 3:17:35 AM CDT Andreas Schwab wrote:
On Jun 06 2018, Matthias Brugger <mbrugger@suse.com> wrote:
I'm not very good at compiling. - Building u-boot is probably beyond my abilities. - I tried briefly, but things like this bog me down & I lose interest. update-alternatives: using /usr/bin/aarch64-suse-linux-gcc-7 to provide /usr/ bin/aarch64-suse-linux-gcc (aarch64-suse-linux-gcc) in auto mode
make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- make: aarch64-linux-gnu-gcc: Command not found
- Do I make a symlink? or edit a file? Oh well.
You need to have your cross compiler toolchain in your $PATH.
That won't help if you use the wrong name.
Andreas.
Andreas, Thanks for the hint. I was following the generic build instruction from rock- chip here: http://opensource.rock-chips.com/wiki_U-Boot . openSUSE calls the cross-compiler by it's own name. That got my a little farther. Now I have this error: aarch64-suse-linux-ld.bfd: cannot find -lgcc Bill Merriam replied off-list suggesting using github.com/ayufan-rock64 u- boot. I've been using his Ubuntu Xenial & Bionic images. - They have been very stable. I used ayufan's sd card image to flash u-boot to SPI, but I only got a few lines of gibberish on the serial console when trying to boot the openSUSE Jeos image. - I don't know what parts of the bootloader ayufan installs, nor do I know what the openSUSE Jeos image needs to boot. Mark -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
A search for u-boot-rock64 still comes up empty on OBS, and upstream U-Boot doesn't seem to have it either, so I can't package u-boot-rock64 myself yet either.
There is a working u-boot for rock64 on github. https://github.com/ayufan-rock64/linux-u-boot Ayufan also has a docker image that will compile u-boot plus other things for rock64. https://github.com/ayufan-rock64/linux-build He publishes images for debian and ubuntu that work pretty well. Some months ago I grabbed one of his images and replaced the debian root filesystem with an opensuse tumbleweed root filesystem. I obviously should have made careful notes about how I did that, but I didn't. Anyway that gave me an image with all the various boot loaders and our filesystem. His kernel was too old for what I needed so I somehow got a kernel source with both opensuse patches and ayufan's patches on it. That gave me a 4.16 kernel that works. Those patches are supposed to be moving toward mainline. I don't know if they got there. Ayufan has repos at gitlab. I don't know if he is moving there or just mirroring there. I will now try to replace my tumbleweed filesystem with leap 15.0 and use my existing kernel. For extra credit I will look at packaging the rock64 firmware, boot loaders and uboot for obs and kiwi. Bill -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (5)
-
Andreas Färber
-
Andreas Schwab
-
Bill Merriam
-
Mark Petersen
-
Matthias Brugger