Go to advanced search

by G-Virus
Fri Feb 09, 2018 11:45 pm
Forum: Bare metal, Assembly language
Topic: [SOLVED] Compilation for Cortex-M3 with ARM RPi 2B Toolchain
Replies: 2
Views: 1302

Re: Compilation for Cortex-M3 with ARM RPi 2B Toolchain

Hello, dwelch67 , thank you very much for your large response to me! I've tried to compile your code and it is works, I'm glad that I can use rpi2 toolchain to work with stm32 microcontrollers (I just tried to compile typical examples from Internet and they need not hard float point toolchain to com...
by G-Virus
Fri Feb 09, 2018 12:16 am
Forum: Bare metal, Assembly language
Topic: [SOLVED] Compilation for Cortex-M3 with ARM RPi 2B Toolchain
Replies: 2
Views: 1302

[SOLVED] Compilation for Cortex-M3 with ARM RPi 2B Toolchain

Hello, programmers. I'm trying to use armv7-rpi2-linux-gnueabihf toolchain to compile a program for STM32 microcontroller based on Cortex-M3 core. CFLAGS -std=gnu99 -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -nostdlib -fsingle-precision-constant Code int main(void) { for (;;) { } } ...
by G-Virus
Wed Jan 31, 2018 11:14 pm
Forum: Advanced users
Topic: i2c-dev does not create an i2c-* in /dev
Replies: 5
Views: 525

Re: i2c-dev does not create an i2c-* in /dev

It is definitely because of kernel or modules or firmware. I just downloaded PiLFS image and replaced boot parition except cmdline and config files, replaced /lib/modules and /lib/firmware then rebooted Raspberry and i2c-1 has appeared. What could be disabled in the default configuration of Raspberr...
by G-Virus
Tue Jan 30, 2018 12:55 am
Forum: Advanced users
Topic: i2c-dev does not create an i2c-* in /dev
Replies: 5
Views: 525

i2c-dev does not create an i2c-* in /dev

Hello everyone. I'm configuring my own linux image for RaspberryPi 2B from the official linux kernel 4.9.78-v7+ for Raspberry. I've done and it works but I have a problem with i2c interface. I have two strings in /etc/sysconfig/modules file: # I2C interface i2c-dev i2c-bcm2708 Also I have i2c-dev bu...
by G-Virus
Thu Nov 02, 2017 11:33 am
Forum: Linux Kernel
Topic: Differences between a Generic Linux Kernel and a Raspberry Kernel
Replies: 8
Views: 7530

Re: Differences between a Generic Linux Kernel and a Raspberry Kernel

Kernels are compiled for different architectures and different capabilities. A kernel contains code that tells it how to interact with hardware, address memory, handle I/O and a number of other things. Config files are specific to the kernel they produce so you really don't want to try and use a co...
by G-Virus
Thu Nov 02, 2017 12:14 am
Forum: Linux Kernel
Topic: Differences between a Generic Linux Kernel and a Raspberry Kernel
Replies: 8
Views: 7530

Differences between a Generic Linux Kernel and a Raspberry Kernel

Hello everyone. Could you guys tell me what the differences between the generic linux kernel which can be dowloaded from kernel.org and the official raspberry kernel? For example, can I use a default config file from the raspberry's kernel with the generic kernel?

Thanks in advance
by G-Virus
Wed Jul 27, 2016 3:32 pm
Forum: Troubleshooting
Topic: [Solved] udev and login utils cannot access /etc directory
Replies: 1
Views: 332

Re: udev and login utilities cannot access /etc directory

Solved by my own experiments, just was missing some so-libraries
by G-Virus
Wed Jul 27, 2016 10:13 am
Forum: Troubleshooting
Topic: [Solved] udev and login utils cannot access /etc directory
Replies: 1
Views: 332

[Solved] udev and login utils cannot access /etc directory

Hello all! I have one problem and cannot find any explanations for it. A few days ago i've installed last PiLFS image on my Pi 2B and now i cannot login to system. Login utility says me 'Login Incorrect', boot.log contains messages like unknown password for user 'UKNOWN'. System logs contains inform...
by G-Virus
Tue Feb 16, 2016 8:27 am
Forum: Other
Topic: Custom Linux System for RPi 2B
Replies: 4
Views: 940

Re: Custom Linux System for RPi 2B

So, i've tried Pi Linux From Scratch, looks really better than Raspbian, but is it slower than Raspbian? It seemed to me PiLFS loading a little bit slower, especially daemons. Is it because of systemd in Raspbian?

Tiny Core Linux looks good also, i think i'll try it!
by G-Virus
Mon Feb 15, 2016 4:32 pm
Forum: Other
Topic: Custom Linux System for RPi 2B
Replies: 4
Views: 940

Re: Custom Linux System for RPi 2B

Pi Linux from scratch? http://www.intestinate.com/pilfs/ Well, looks very good. But i've downloaded a latest image and dd onto sd card, this is over 1 GiB on rootfs and also has a billion unneeded features like awk, sed, gcc for my goals. So that's really better than Raspbian for my goals, thank yo...
by G-Virus
Mon Feb 15, 2016 2:48 pm
Forum: Other
Topic: Custom Linux System for RPi 2B
Replies: 4
Views: 940

Custom Linux System for RPi 2B

Hi there! I cannot find the information needed for me so i ask about it here I need a real minimalist Linux environment for my RPi 2b. Not a Raspbian or any monster analogs, not a arch, not a gentoo. I needn't a most of features that contains in mainstream distros. Can you guys help me (maybe theore...

Go to advanced search