Raspberry Pi PICAN issues copying pre-compiled kernel image - linux

I recently purchased a PICAN CAN-Bus Board for Raspberry Pi. I am new to linux and am having issues copying over the pre-compiled kernel image. These are the instruction it says to follow (below).
The quickest way to try this board out is to use pre-compiled kernel image.
Download the image from http://lnxpps.de/rpie/ and copy over to your Pi.
# cp can-test/kernel.img /boot
# cp -a can-test /home/pi
I have downloaded the pre-compiled kernel image to a USB thumb drive. Plugged it into my raspberry pi. Shows up mounted /media/USB DISK. How do I get terminal to point to the USB drive and copy over theses files?
Any help would be greatly appreciated.

Try this:
cp /media/USB\ DISK/can-test/kernel.img /boot
cp -a /media/USB\ DISK/can-test /home/pi

Related

how to create uefi bootable image from bzimage (custom kernal)

for my project i have useb build-root to create a custom Linux kernel using menuconfig. i got my custom kernel image as bzimage file and root file directory as .tar image. i have built the kernel for x86 archetecture , Intel atom processor.
what i needed is to create a Linux OS .efi bootable image so that i can install the OS and try to test it .
i have tried copying the kernel image to /dev/sda1/EFI/ folder and renaming it to bzimage.efi and creating a boot entry for it but it didnt work out. it couldnt read the file format.
can you pleas point me to the right direction or some tutorial to create the os image.

Difference between wic and hddimg format in yocto

I have generated a core-image-minimal image for my Intel board in Yocto.
Looking into tmp/deploy/images folder they are many images.
I flashed *.wic image using dd command on USB and it created two partitions ( Boot and Platform ) and allowed only to perform a live booting without allowing it to install on the hard disk of the board.
I then flashed *.hddimg on the USB using dd command. It only created a "boot" partition which has rootfs.img, syslinux and EFI folder.
Booting using USB provided me an "Install" option, which installed on the board and when I rebooted after installing, it displays "No bootable media found"
Using bootable image there are two partitions in the hard disk. Why it is not booting..
Steps followed:
Created an minimal yocto image using "bitbake core-image-minimal" command
Flashed the USB using the dd command.
sudo dd if=tmp/deploy/images/intel-corei7-64/core-image-minimal-intel-corei7-64.hddimg of=/dev/sdb
Clicked on install and typed “sda”
The installation was successful and when I tried to restart by removing the USB Drive, it says “No boot options found. Please install bootable media and restart."
What is the mistake I am doing here.
Which image to choose and when..
There was not much info about online, so I asked this question in the intel community and here is the response of that:
Generally a .wic image is intended to be installed directly to its final destination, whereas an hddimg is for evaluation and installation elsewhere.
By default meta-intel .wic images only have an EFI bootloader, and will not boot via legacy BIOS.
An hddimg will have both an EFI bootloader and the syslinux binaries that let it boot from legacy BIOS.
On startup with your installer USB image do you get a light gray screen with four options? If so it is booting via legacy BIOS.

zImage install on Raspberry PI 2

I have precompiled Android Kernel and modified it. After builduing I got an zImage. The Question is how can I install and boot the zImage on my raspberry pi 2?
I'm using a SD-card.
The RPi won't load a normal zImage. You will need to use a tool called imagetool-uncompressed.py available in the Raspberry PI Tools repo to convert the zImage into the format used by the Raspberry PI.
After doing that, you can copy the kernel.img file into /boot on the SD card.
There is a reasonably complete tutorial on compiling and installing your own kernel here and another here. I recommend you read these if you have not already, because there are a lot of other aspects to consider.

How do I install ./ unpack a zImage file onto my host PC?

I have a zImage file of a linux kernel 2.6.32.2 that someone sent me. I dumped onto my mini2440 board and it works fine there. Now, I would like to do the same for my host PC so that I can configure the kernel using the zImage that I have, since it has a few files that were missing from my earlier kernel.
How do I go about doing this?
Thank you,
Regards

Raspberry pi - file blocking startup

I was trying to make some script automatically run on OS start up, but somehow i did it wrong and now i cant even start the OS since the file is blocking it.
Can i recover the OS removing what i did or at least have access to all my files inside my SD card? I've opened it on my laptop and all i have is two repartitions "BOOT" and "RECOVER" but can't find my user folder /home or anything usefull.
What i did:
sudo cp /home/pi/Desktop/test.sh /etc/rc.local
Thanks!
Best get a bootable CD of a linux distro - fedora, ubuntu, any other, it doesn't really matter - boot the CD on your laptop and mount the SD card from there. Windows can't read linux partitions; other linuxes can.

Resources