-
Notifications
You must be signed in to change notification settings - Fork 184
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
Error: invalid register 'atomctl' for 'wsr' instruction in reset-vector.S #69
Comments
I don't think you can compile xtos with the crosstool-NG. Perhaps you're compiling xtos with the compiler that you've built with the crosstool-NG.
That means that xtensa configuration that you used to generate your compiler does not have atomctl register. In any case I don't see how this may be a crosstool-NG issue. |
Yes you are right. I am compiling xtos with the compiler that you've built with the crosstool-NG. Xtensa overlay file which I am using for custom xtensa configuration is having atomctrl register. |
Ok, please share your crosstool-NG .config that you used to build the compiler and your xtensa configuration overlay.
You need to build binutils with the correct configuration overlay. |
I am attaching the crosstool-NG .config that you used to build the compiler for your reference. Pls let me me know what changes i have to do to build binutils with the correct configuration overlay. |
Please also share the configuration overlay, the file ${CT_TOP_DIR}/overlay/xtensa_lg_108_lx7_x.tar* |
Sir the overlay size is huge. around 1.9 GB. It is difficult for me to upload the huge file. Even after zipping the overlay file. |
This is hardly possible. Here's an example collection of overlay files, the biggest one is smaller than 1MB. The overlay file used by the ct-ng can be generated from the original overlay, normally installed into And using wrong file for the overlay might explain the error that you see: if the correct files are not inside the overlay archive then overlay application step in the ct-ng would succeed, but the toolchain components would not be configured correctly. |
Ahhha. I got my mistake. I was giving the wrong overlay file. I missed the step you mentioned. I will try again by giving the correct overlay file and cross compile the compiler and binutils again and check. |
Still after using the correct overlay file i am getting the same above error. I have attached the crosstool-ng config file as you have asked for. Please find rosstool-ng config |
I've put your overlay into
Please make sure that you use the correct toolchain when building xtos? |
Getting an error while cross compling xtensa source xtos with crosstool-NG
reset-vector.S: Assembler messages:
reset-vector.S:291: Error: unknown opcode or format name 'wsr.atomctl'
Makefile.src:281: recipe for target 'reset-vector-unpack.o' failed
make: *** [reset-vector-unpack.o] Error 1
Host : 32 bit ubuntu 16.04 LTS
crosstool-NG : crosstool-NG 1.24.0
The text was updated successfully, but these errors were encountered: