LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-21-2024, 05:52 AM   #46
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 2,242

Rep: Reputation: Disabled

Quote:
Originally Posted by saxa View Post
Hi @sndwvs , many thanks. Is this an already installed image ? If so I will have a try also , many thanks.
yes, this is a pre-installed system.
 
Old 07-21-2024, 09:07 AM   #47
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,398

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
just curious, anyone know, lemaker is defunct, this looks like successor ?
 
Old 07-21-2024, 09:32 AM   #48
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 2,242

Rep: Reputation: Disabled
Quote:
Originally Posted by glorsplitz View Post
just curious, anyone know, lemaker is defunct, this looks like successor ?
yes, bananpi.org (SinoVoip Co.) is the official website, this is the official store.
 
1 members found this post helpful.
Old 07-21-2024, 12:14 PM   #49
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,688

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
Quote:
Originally Posted by saxa View Post
Hi @glorsplitz, ok I got your point, I should recheck these setenv parameters I set up. I.
In addition to the Kernel cmdline settings, you need to configure U-Boot to load the FTD, Kernel and initrd from the MMC.

See section '5.0 Booting the Slackware ARM OS' of the installation guide: your system seems to be configured to boot from USB, so you need to edit those settings and use mmc instead (or whatever U-boot refers to the MMC as, if it's not 'mmc' - your previous log files from the 14.2 installation probably have the correct settings contained within them), and ensure you have it pointing to the correct partition on the MMC as well (e.g. 0:2).
Once you've edited the bootcmd_dtb and bootcmd_slk variables, saveenv and reset. You'll get there eventually ;-)
 
1 members found this post helpful.
Old 07-21-2024, 02:48 PM   #50
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,419

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
@drmozes, ok so I wrongly tought that mmc is usb. Thanks for the tips, will try few things and hopefully succeed.
 
Old 07-22-2024, 02:00 AM   #51
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,419

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Hi, ok I got it to boot by adjusting the 2 lines below, but now I still got an error as seems it does not found the / partition. and kernel panics at the end.
Do I have to recreate the initrd maybe ?

Code:
setenv bootcmd_dtb 'ext4load mmc 0:2 ${fdt_addr} /boot/dtb/${DTB} ; fdt addr ${fdt_addr} 0x40000'
setenv bootcmd_slk 'mmc reset;mmc reset;mmc scan ; run bootcmd_dtb ; ext4load mmc 0:2 ${kernel_addr_r} /boot/zImage-armv7 ; ext4load mmc 0:2 ${ramdisk_addr_r} /boot/initrd-armv7'
saveenv ; reset
Is this because the initrd points to some other location ?

Any idea on how to solve this ?
Attached Files
File Type: txt screenlog.0.adjusted_bootenv_params.txt (38.3 KB, 5 views)
 
Old 07-22-2024, 02:52 AM   #52
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,688

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
Quote:
Originally Posted by saxa View Post
Hi, ok I got it to boot by adjusting the 2 lines below, but now I still got an error as seems it does not found the / partition. and kernel panics at the end.
Do I have to recreate the initrd maybe ?

Code:
setenv bootcmd_dtb 'ext4load mmc 0:2 ${fdt_addr} /boot/dtb/${DTB} ; fdt addr ${fdt_addr} 0x40000'
setenv bootcmd_slk 'mmc reset;mmc reset;mmc scan ; run bootcmd_dtb ; ext4load mmc 0:2 ${kernel_addr_r} /boot/zImage-armv7 ; ext4load mmc 0:2 ${ramdisk_addr_r} /boot/initrd-armv7'
saveenv ; reset
Is this because the initrd points to some other location ?

Any idea on how to solve this ?
You can remove 'mmc reset' since it the mmc command doesn't take 'reset' as a parameter. The resetting was for the SCSI and USB buses, since U-Boot often failed whilst the storage was busy spinning up.

In the U-Boot config you should change the 'root=' boot configuration to 'root=LABEL=SLKroot' and savenv again - it'll probably work then.

If not, you will need to add 'slkpbs' (without quotes) to the U-Boot 'bootargs' variable, saveenv and boot again.
It'll boot into the preboot shell. Exit stages 1 & 2 and poke around the system at stage 3. If you can figure out what's wrong with it, you can fix it up there and then exit stage 3 into the OS.
 
Old 07-22-2024, 03:13 AM   #53
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,419

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Ok, I modified as per your suggestion, if I got it correctly. But unfortunately I end up still without a finished boot.

See attached log.
Attached Files
File Type: txt screenlog.0.reseting_boot_args.txt (37.5 KB, 2 views)
 
Old 07-22-2024, 04:34 AM   #54
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,688

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
Quote:
Originally Posted by saxa View Post
Ok, I modified as per your suggestion, if I got it correctly. But unfortunately I end up still without a finished boot.

See attached log.
Add slkpbs to the Kernel cmdline, quit stage 1 and poke around stage 2 and see if you can find whether /dev/mmcblk* exists.
In the previous message I said there were 3 stages -- but not in the version of the module loader contained within the original Kernel package (the kernel in /patches contains a later version)

It may be that the module required to support mmc on the Banana Pi simply isn't loaded, so you can modprobe it.
 
Old 07-22-2024, 05:22 AM   #55
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,419

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Excuse my ignorance, what exactly is slkpbs ? I simply add this as a parameter or how ?
If I run the installer I can see 2 partitions with fdisk -l one /dev/mmcblk0p1 and /dev/mmcblk0p2.

About stage 1,2 or 3 how they are defined ? Stage 1 is after pressing the power button, stage 2 is what exactly ?
 
Old 07-22-2024, 05:43 AM   #56
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,688

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
Quote:
Originally Posted by saxa View Post
Excuse my ignorance, what exactly is slkpbs ?
Slackware pre-boot shell. It's just a way to open a shell within the OS initrd for troubleshooting and development.

At the u-boot console:

Quote:
I simply add this as a parameter or how ?
Code:
setenv bootargs "${slkconsole} ${bootcmd_generic} root=LABEL=SLKroot waitforroot=3 rootfstype=ext4 slkpbs"
saveenv;reset


Quote:
About stage 1,2 or 3 how they are defined ? Stage 1 is after pressing the power button, stage 2 is what exactly ?
You can read about it here.
 
1 members found this post helpful.
Old 07-22-2024, 06:51 AM   #57
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,419

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
@drmozes, ok all clear thanks, but how do I view the contents of the files in there ? I never used ash. Is there some kind of cat or similar command ?
How am I supposed to see something in the files ?
 
Old 07-22-2024, 08:08 AM   #58
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,688

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
Quote:
Originally Posted by saxa View Post
@drmozes, ok all clear thanks, but how do I view the contents of the files in there ? I never used ash. Is there some kind of cat or similar command ?
How am I supposed to see something in the files ?
The initrd is a small OS, similar to the installer but with a smaller tool set.
Just boot it with slkpbs and you'll see for yourself.
 
Old 07-22-2024, 08:47 AM   #59
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,419

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
this is where I am right now:

Code:
[  386.795068] RPC: Registered named UNIX socket transport module.
[  386.801100] RPC: Registered udp transport module.
[  386.805835] RPC: Registered tcp transport module.
[  386.810560] RPC: Registered tcp NFSv4.1 backchannel transport module.
[  387.007321] FS-Cache: Netfs 'nfs' registered for caching
Stage 2 of 2: Post module loading
Development shell opening.
Exit shell to proceed to the next stage in the module loading
process.

Development shell opening
Module variables are prefixed with 'MOD_'
Note: You cannot edit the variables here, only view.

/bin/ash: can't access tty; job control turned off
Pre-boot shell (2/2): # 
Pre-boot shell (2/2): # ls
await_device             load_kernel_modules      rootdev
bin                      load_kernel_modules.scr  rootfs
dev                      luksdev                  run
etc                      lukskey                  sbin
init                     mnt                      sys
initrd-name              proc                     usr
keymap                   resumedev                wait-for-root
lib                      root
Pre-boot shell (2/2): # help
Built-in commands:
------------------
        . : [ [[ alias bg break cd chdir command continue echo eval exec
        exit export false fg getopts hash help history jobs kill let
        local printf pwd read readonly return set shift source test times
        trap true type ulimit umask unalias unset wait
Pre-boot shell (2/2): # exit
mdadm: No arrays found in config file or automatically
[  432.863867] urandom_read: 3 callbacks suppressed
[  432.863899] random: vgchange: uninitialized urandom read (4 bytes read)
mount: can't find /mnt in /etc/fstab
ERROR:  No /sbin/init found on rootdev (or not mounted).  Trouble ahead.
        You can try to fix it. Type 'exit' when things are done.

/bin/sh: can't access tty; job control turned off
/ # ls
await_device             load_kernel_modules      rootdev
bin                      load_kernel_modules.scr  rootfs
dev                      luksdev                  run
etc                      lukskey                  sbin
init                     mnt                      sys
initrd-name              proc                     usr
keymap                   resumedev                var
lib                      root                     wait-for-root
/ # help
Built-in commands:
------------------
        . : [ [[ alias bg break cd chdir command continue echo eval exec
        exit export false fg getopts hash help history jobs kill let
        local printf pwd read readonly return set shift source test times
        trap true type ulimit umask unalias unset wait
/ #
But to be honest I have no idea on how to inspect these files without a cat or some kind of editor command.
 
Old 07-22-2024, 08:52 AM   #60
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,419

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Ups, sorry, I see now I have a vim there
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can anyone beat my HDD cumulative powered on time? linustalman Linux - Hardware 7 06-02-2018 06:50 AM
[SOLVED] Cumulative patches update apmount Slackware 7 05-25-2017 08:53 AM
Where the fsck (cumulative) logs lie? fermin Linux - General 3 09-02-2008 07:51 PM
LXer: Simple Cumulative Math Using Awk On Unix or Linux LXer Syndicated Linux News 0 06-30-2008 01:20 AM
Are workqueues cumulative? greplinux Linux - Newbie 3 04-15-2008 08:27 PM

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

All times are GMT -5. The time now is 02:28 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