LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-10-2015, 03:58 AM   #16
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled

No, I have only one SD card.
I will try as soon as possible to boot the raspbian image (as you suggested in a previous post) to check if the firmware in the raspbian image is good for my board.
 
Old 04-10-2015, 04:24 AM   #17
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
I suggested that when I thought that you had 2 Pi board, an old one and an new one.
If the old firmware is known good for your board it might not help you move towards a solution.
 
Old 04-13-2015, 11:46 AM   #18
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
Interesting thing!
I have done the test with the raspbian image to check if the firmware in the raspbian image is good for my board.
It seems to be bad.

This is what I have done:
Code:
sudo mkdosfs -F 32 /dev/mmcblk0p1
wget -c http://downloads.raspberrypi.org/raspbian/images/raspbian-2014-06-22/2014-06-20-wheezy-raspbian.zip
unzip -o 2014-06-20-wheezy-raspbian.zip
sudo mount /dev/mmcblk0p1 /mnt/floppy
sudo cp -v 2014-06-20-wheezy-raspbian.img /mnt/floppy
sudo umount /mnt/floppy
rm 2014-06-20-wheezy-raspbian.img
And it does not work.
Also, I have tried with the zip instead of the img file (because I do not know the exact instructions in order to install raspbian from the image) and it does not work, same behavior: The red LED is actived only and nothing displayed to the screen.
Exactly the same behavior than with the try with Slackware.

This is the partitions on my SD Card:
Code:
sudo fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 7822 MB, 7822376960 bytes
4 heads, 16 sectors/track, 238720 cylinders, total 15278080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d8d91

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048    15278079     7638016    c  W95 FAT32 (LBA)
Maybe the problem is only about the version of raspbian I am using.
I should try with older versions I think...

Can someone just confirm that what I am doing is correct to install raspbian?
I just need to copy the zip or img file to the SD Card?

Last edited by YuGiOhJCJ; 04-13-2015 at 11:47 AM.
 
Old 04-13-2015, 02:08 PM   #19
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled
Don't copy the raspbian-*.zip file to the SD card. Make an empty (scratch-space) directory, move (or copy) the zip file into that directory, and unzip it there. If you get a single raspbian-*.img file, then that is the file you want to copy to the SD card. It will have the partition table at the beginning, plus the /boot partition with firmware and kernel, and the root partition, all prepared for the first-boot setup and configuration.

(Comments definitely welcome. I'm not a regular Raspbian user.)
 
Old 04-13-2015, 04:09 PM   #20
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
Unless you're prepared to tinker with the image itself you will need an SD that is at least the size of the uncompressed image.
Unzip the zipped image and run fdisk on it to see the size SD you need.
Code:
fsidk -l 2014-06-20-wheezy-raspbian.img
then once you have an SD of at least the size fdisk reports the image is go ahead like this: (supposing on your system th SD is located in /dev/mmcblk0)
Code:
cat 2014-06-20-wheezy-raspbian.img > /dev/mmcblk0
sync
or something equivalent to that if you're concerned about using cat in that manner.
Code:
dd if=2014-06-20-wheezy-raspbian.img of=/dev/mmcblk0 bs=512
You might haveto use partprobe or reinsert the SD to have kernel reread the SD partition table and make udev create the device files for the partitions created in the SD while dumping raw data into it.

If you don't have an SD big enough you're back to having to tinker with the image to reduce it to fit your SD, much like the manual installation process for the Slackware arm miniroot.

Last edited by louigi600; 04-14-2015 at 12:29 PM.
 
Old 04-16-2015, 03:39 PM   #21
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Trying to follow your logic here...

Quote:
the3dfxdude> I prefer a manual installation than an installation that requires an installer.
That is why I chose this solution.
Anyway, I have followed these instructions using an old version of raspbian from 2013 but I have also tested with a version from 2014.
Same results.
On the link you give, I only see an installer image.
That is not what I am looking for as I would like a manual installation.
Quote:
Interesting thing!
I have done the test with the raspbian image to check if the firmware in the raspbian image is good for my board.
It seems to be bad.

This is what I have done:
...snip...
And it does not work.
...snip...
Maybe the problem is only about the version of raspbian I am using.
I should try with older versions I think...

The fatdog image has an installer, yes. But even when I used the image, I technically did not run the installer. You can use that bootdisk image and not run the installer. I highly suggest not downgrading to an older raspbian image. The newer firmware is so much better. Please consider using the fatdog very new image and adapting to your manual install process. Some reasons:

* The firmware is only a few days old
* It boots you to a shell you can get started in
* It is a slackware-arm native environment
* The steps will be easier / more intuitive
i.e. ... boot, finish your partitions, mount target partition, unzip or use installpkg. Follow the last steps setting up the SD to boot your OS as found in the fatdog instructions.

It worked out of the box for my pretty old latter 2012 raspi B model.

Last edited by the3dfxdude; 04-16-2015 at 03:42 PM.
 
Old 04-18-2015, 04:27 AM   #22
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
louigi600> OK I have done the test:

Code:
$ fdisk -l 2014-06-20-wheezy-raspbian.img

Disk 2014-06-20-wheezy-raspbian.img: 2962 MB, 2962227200 bytes
255 heads, 63 sectors/track, 360 cylinders, total 5785600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b5098

                         Device Boot      Start         End      Blocks   Id  System
2014-06-20-wheezy-raspbian.img1            8192      122879       57344    c  W95 FAT32 (LBA)
2014-06-20-wheezy-raspbian.img2          122880     5785599     2831360   83  Linux
$ sudo bash
# cat 2014-06-20-wheezy-raspbian.img > /dev/mmcblk0
# sync
And it works fine!
So the firmware is good for my board and the problem about installing Slackware is probably about the way I am partitioning, or the way I am formating, or the way I am copying files to the SD card...

the3dfxdude> Yes, OK there is a way to install Slackware without an installer using a bootdisk.
If you have some instructions to give me I can try to follow them.
Anyway, I am interested to understand why the instructions of louigi600 written on the Wiki do not work anymore.
I was able to do it before and I would like to find what is the reason of this failure.
 
Old 12-12-2015, 09:59 AM   #23
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
It works

I have been notified by e-mail that the instructions [1] for installing Slackware ARM on the Raspberry Pi have been modified by allend the 2014-12-17 at 12:49.
I just have to use "-F 16" instead of "-F 32" for the "mkdosfs" command.

Now, I can boot but after that I don't know what is the password for the "root" user.
So, I modified the "/etc/shadow" file to set a new one:
Code:
$ sudo mount -o noatime /dev/mmcblk0p2 /mnt/hd
$ sudo vim /mnt/hd/etc/shadow
$ sudo umount /mnt/hd/
As the password is encrypted in this file, the value I typed was a value copied from an existing user from my /etc/passwd file.

After this modification, I am able to log in

Do you know what is the default password for the "root" user?

[1] http://docs.slackware.com/howtos:har...rm:raspberrypi

Last edited by YuGiOhJCJ; 12-12-2015 at 10:01 AM.
 
Old 12-12-2015, 10:49 AM   #24
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
I've been recently revisiting my own notes while doing basically the same thing on RPi2 ... I figured out that there was an issue on the boot the way the partition is formatted: not enough cluster to make such a small fat32 filesystem ... you need to format the patition with -F 16 but the partition ID should still be c so that you get a 16 bit vfat and the Pi seems to like that better
Sorry for taking so long to debug that.
I now have a script for the RPi2 that takes miniroot, kernel, modules and boot firmware and creates a working image file ready to be cat or dd to an uSD .... It would probabbly still work on the Pi as long as you instruct it to use the correct kernel, modules and boot firmware packages from Fatdog. If anybody wants it I can share it.
 
Old 12-12-2015, 07:31 PM   #25
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
Oh I found the default password is "password"
Here is the information: ftp://ftp.arm.slackware.com/slackwar...ot_details.txt

Problem solved
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspberry Pi Complete Manual out now! LXer Syndicated Linux News 0 04-02-2014 04:11 AM
LXer: Educational manual for Raspberry Pi released LXer Syndicated Linux News 0 01-04-2013 03:50 AM
SuSE 10.1 x64 - unable to boot from HD during installation czerwinski1977 SUSE / openSUSE 2 07-16-2006 03:52 AM
Gentoo Unable to boot after installation christian_delaf Linux - Distributions 3 05-21-2005 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration