<andre4s>
this is my last try that have worked on other ubuntu machines and i only reconfigured some lines to point to the zImage insted of the uImage of the tutorial http://nopaste.linux-dev.org/?1162090
<pmpp>
usually with root=LABEL=some_ext4lbl kernel will find the partition on any device supported or uuid too
<andre4s>
hi pmpp
<andre4s>
i have the first partition as a ext4 partition
<andre4s>
so normaly the mainline kernel >=4.x entry looks right for me
<andre4s>
but still does not getting any success
<pmpp>
but you use fixed /dev/sda which may be good or not you can't be sure of that
<pmpp>
eg an usb mass storage could take that sda
<pmpp>
armbian use UUID to find root partition
<andre4s>
ok, so i should add the UUID of my root partition on my hdd instead of using /dev/sda1?
<pmpp>
probably would help
<miasma>
you can't boot with UUID without initramfs
<andre4s>
i am very thankfull for any hint that makes my pi boot again from my hdd ;)
<pmpp>
if kernel is able to load driver for the disk it *will* find the root part
<andre4s>
normaly i do not need the sunxi 3.4.x part because i am running kernel 4.13.3 on the arch which is installed on the hdd
<miasma>
also if you're creating the initramfs yourself, you might need to translate it with 'mkimage -A ${UBOOT_ARCH} -T ramdisk -C ${INITRAMFS_COMP} -n uInitrd -d ${INITRAMFS} ${INITRD}'
<andre4s>
ok, good to know
<andre4s>
the initramfs have been created automaticly of my archlinux
<andre4s>
i didnt created it by myself
<miasma>
if you've compiled sata support in the kernel, it should find rootfs from the hard drive even without initramfs
<miasma>
otherwise the drivers might be stores as modules in the initramfs
<miasma>
*stored
lurchi__ is now known as lurchi_
<andre4s>
the boot.cmd that worked to boot from my sdcard is the same like in the archlinux tutorial and looked like this: http://nopaste.linux-dev.org/?1162092
<andre4s>
ah ok
<andre4s>
did not knew this
<andre4s>
with the booted arch on my sdcard that uses the same kernel there is no sata module loaded and i am able to access the hdd
<andre4s>
looks like it is compiled into the kernel
<andre4s>
by the way, sorry guys for my bad english
<andre4s>
i hope its more or less understandable what i am writing :D
<andre4s>
these are the modules that are loaded on the system that is running on my sdcard and i am able to access the hdd. so looks like there is no sata module in the initramfs,right? http://nopaste.linux-dev.org/?1162093
<andre4s>
i am so happy guys to have someone to talk about that, because my last days have only been a shot in the dark
fugitive_ has quit [Ping timeout: 248 seconds]
<andre4s>
should i use the UUID or the PARTUUID in the boot.cmd?
<andre4s>
well, think i have to get one like these :>
lurchi_ is now known as lurchi__
<andre4s>
thanks for the links
<pmpp>
afaik ch340g are the cheapest
lurchi__ is now known as lurchi_
<andre4s>
not so important if they cost 1 or 2 bugs
<andre4s>
but i have to think about it if i have to spend ~15
<andre4s>
;)
<pmpp>
ch340 are sub dollar so take a bag of them :)
<andre4s>
hehe
<andre4s>
there are you guys from?
<andre4s>
the us?
<pmpp>
me UE
jbrown has quit [Ping timeout: 260 seconds]
<andre4s>
UE?
<andre4s>
Europen Union?
<pmpp>
indeed
<andre4s>
nice, which part of the eu?
<andre4s>
never have seen anyone right it UE, in germany we call it EU ;)
<pmpp>
on your left it is UE ;)
<andre4s>
xD
aalm has quit [Ping timeout: 240 seconds]
<andre4s>
damn, i have to improve my english :>
<andre4s>
you re right
<andre4s>
in spanish its union europea too :D
<andre4s>
damn, i think i speak better spanish than english now :D
<andre4s>
ok, still not booting with the zboot
<andre4s>
i will have a cigaret, brb
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
_whitelogger has joined #linux-sunxi
<andre4s>
re
<andre4s>
ok, maybe something is wrong with my system on my hdd
<andre4s>
to prevent this is the error i will rsync it again
lurchi_ is now known as lurchi__
willmore has quit [Ping timeout: 264 seconds]
<andre4s>
ok, i should ask a few newby questions before i go on to make some things more clear.
<andre4s>
on my old leemaker archlinux that worked only with the old kernel i got mmcblkp1 a vfat boot partition and mmcblkp2 have been the ext4 root partiton
<andre4s>
on my archlinux now i only have one big mmcblkp1 as ext4 with root and boot
<andre4s>
can this maybe cause my problems?
willmore has joined #linux-sunxi
<pmpp>
maybe afaik boot.cmd file expect ext4 or fat parameter for loading initrd
<andre4s>
the bootloader (u-boot-sunxi-with-spl.bin) has only been written to /dev/mmcblk0 ?
<andre4s>
or do i have to write it to the hdd too?
<pmpp>
on my board it is sdcard first, emmc second dunno about sata
<andre4s>
think its the same here
<andre4s>
so the bootloader has only been written to sdcard
<pmpp>
probably and it is reading boot.scr from there
<andre4s>
because after that boot.scr does not need the boot image on sda to boot of it?
<andre4s>
i have a few udnerstanding problems with uboot
<pmpp>
harddrive is probably called scsi 0:1
<andre4s>
i am trained in booting linux from hdd on pc´s with lilo, grub, grub2 but this is my first arm board to hack on it
argulp has quit [Read error: Connection reset by peer]
argulp has joined #linux-sunxi
<andre4s>
yeah!
<andre4s>
dont know what have been the problem
<andre4s>
but finally its working!!! :D
<andre4s>
thank you guys so much!!!!
<andre4s>
spent 3 evening/nights in trying it by myself until i decided to need help ;D
<andre4s>
in a second i will post a link to the final boot.cmd that worked
<andre4s>
ok, one of the 3 changes done the trick
<andre4s>
1: i reformated the sda1 partition with the Label rootfs like this: mke2fs -t ext4 -L rootfs /dev/sda1
<andre4s>
before i have made only a normal ext4 partition without the label
<andre4s>
2: i copied the arch again because i havent been sure if the arch on the sda1 havent been only the unpacked ArchLinuxARM-armv7-latest.tar.gz
<andre4s>
3: some changes in the boot.cmd like using UUID instead of PARTUUID and i changed order in bootz comand
<andre4s>
ok, now i have a last understanding problem before i can start to configure my pi
<andre4s>
the kernel is stored in the zImage file in /boot/zImage
ninolein has quit [Ping timeout: 246 seconds]
<andre4s>
like its booting at the moment the uboot will automaticly load the zImage stored on mmcblk0p1 and boot it
ninolein has joined #linux-sunxi
<andre4s>
if i do a kernel upgrade with my archlinux it will store the new zImage on /boot/zImage on sda1
<andre4s>
so the uboot will all the time load the oldkernel and the updates doesnt work
<pmpp>
don't forget initrd too
<andre4s>
so i have to mount mmcblk0p1 as /boot/ partition
<andre4s>
or isnt it a good idea
<andre4s>
where is the initrd stored?
<andre4s>
damn, forgot everything because i am working since years with systemd
<andre4s>
:>
<pmpp>
3 things could need upgrade uboot in first sectors of sdcard, zimage and uinitrd ( usually in /boot )
lurchi_ is now known as lurchi__
<andre4s>
so i HAVE TO mount the mmcblk0p1 as boot in the fstab on my sda1
aalm has joined #linux-sunxi
<pmpp>
or bind mount /boot to /boot
<pmpp>
it is not /boot like grub2
<andre4s>
because while debugging my new setup with new uboot i found out that i have never done this on my old setup with old ubootand leemaker kernel
<andre4s>
how do you mean bind it
lurchi__ is now known as lurchi_
<andre4s>
i only can bind things that are present in the filesystem
<pmpp>
eg mount /dev/mmcblk0 /mnt/disk ; mount --bind /mnt/diskl/boot /boot
<andre4s>
and at the moment after the boot process mmcblk0p1 isnt mount to any place
<andre4s>
ah ok
<pmpp>
mount /dev/mmcblk0p1 /mnt/disk
<andre4s>
but whats the difference to mount it directly to boot? :D
<pmpp>
you'll end up with /boot/boot/zImage
<pmpp>
could confuse updater
<andre4s>
yeah, at the moment
<andre4s>
until i separate the system on the sdcard to (mmcblk0p1 = boot; mmcblk0p2 = root) ;)
<andre4s>
good idea to work with the setup that i have until i get borred and get some time to do the separation ;)
<andre4s>
thanks again
<andre4s>
so this have been one of my worst errors that i havent had a mounted the boot partition on my old setup
<andre4s>
:D
<andre4s>
thank you mate
<andre4s>
because i got so frustrated in the last days
<andre4s>
its not a joke that i stucked in boot process more than 50 times in the last days and had to recover my sdcard with my laptop
lurchi_ is now known as lurchi__
<miasma>
you don't need to store stuff in /boot inside the boot partition
<miasma>
just mount the sd partition to /boot
<miasma>
the paths can be configured in boot.cmd
<andre4s>
that have been what i liked to explain ;)
<andre4s>
sorry i think sometimes my english isnt very clear and i get confused xD
<andre4s>
hmmm strange, for testing i deleted the content of the /boot/ folder on sda1
<andre4s>
still everything there in the boot folder on mmcblk0p1
<andre4s>
now my pi is booting, nic gets link, my router said that it got the same ip like all the time but now i get a connection timeout while trying to connect to it on ssh
<andre4s>
so looks like it is using the boot folder of sda1 too while booting with sda1 as rootfs
<andre4s>
hmmm
<andre4s>
if it is like this maybe it isnt a good idea to mount mmcblk0p1:/boot to /boot on sda1
<andre4s>
now i do not understand anything
<andre4s>
its responding my ping
lurchi__ is now known as lurchi_
<andre4s>
how can it be possible that i could connect before to the sshd and now its not responding but i can ping the pi
<andre4s>
for me this makes no sense
cnxsoft has joined #linux-sunxi
lurchi_ is now known as lurchi__
anarsoul|2 has quit [Ping timeout: 240 seconds]
<andre4s>
ok thanks again mates
<andre4s>
have to get some rest
<andre4s>
i wish you guys a good night
andre4s has quit [Quit: Leaving]
loblik has quit [Ping timeout: 248 seconds]
loblik has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
TheSeven has quit [Ping timeout: 246 seconds]
TheSeven has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
RichardG867 has quit [Ping timeout: 240 seconds]
RichardG867 has joined #linux-sunxi
jernej has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft1 has joined #linux-sunxi
cnxsoft1 is now known as cnxsoft
lkcl has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
freemangordon1 has joined #linux-sunxi
freemangordon has quit [Read error: Connection reset by peer]
freemangordon1 has quit [Client Quit]
freemangordon has joined #linux-sunxi
scream has joined #linux-sunxi
f0xx has joined #linux-sunxi
JohnDoe7 has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 260 seconds]
nvz has quit [Ping timeout: 248 seconds]
nvz has joined #linux-sunxi
IgorPec has quit [Ping timeout: 258 seconds]
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
dave0x6d has quit [Quit: Connection closed for inactivity]
LargePrime has quit [Ping timeout: 248 seconds]
LargePrime has joined #linux-sunxi
fugitive_ has joined #linux-sunxi
Ntemis has joined #linux-sunxi
pfeerick has quit [Ping timeout: 240 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
jernej has quit [Ping timeout: 240 seconds]
<Net147>
sunxi_fan: with sun7i-drm-wip branch you can use both RGB and HDMI at same time displaying different graphics
<Net147>
sunxi_fan: there is only /dev/fb0 which is mirrored across all displays. there isn't a /dev/fb1
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein
<Net147>
sunxi_fan: so you need to use DRM APIs if you want to draw different 2D graphics on each display at same time or GBM APIs for 3D graphics
reinforce has joined #linux-sunxi
<Putti>
Are there any plans for adding simplefb support in u-boot for the DE2 HDMI driver? The jernej's u-boot fork has it but it was not added when it was merged to upstream u-boot.
<Putti>
MoeIcenowy, I see you sent already a patch for enabling it on the kernel side so maybe you know the status of the situation?
SP7RT has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
dev1990 has joined #linux-sunxi
SP7RT has quit [Ping timeout: 260 seconds]
<MoeIcenowy>
Putti: for the U-Boot side it's waiting for reviews from the U-Boot Video maintainers
<MoeIcenowy>
and I think Maxime wants to merge the Linux side only if the U-Boot part is ready
<Putti>
MoeIcenowy, which mailing list the patch was sent to?
SP7RT has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
aalm has quit [Ping timeout: 240 seconds]
paulk-gagarine-s is now known as paulk-gagarine
<Putti>
MoeIcenowy, I'm using github.com/jernejsk/linux-1 branch h3_hdmi_rfc but I get on H2+ board (R69 tv box) the following: <http://paste.debian.net/plain/988447>. I have tried to use the mixer1 but no change.
lurchi_ is now known as lurchi__
<MoeIcenowy>
Putti: have you enabled DE2 CCU driver?
<MoeIcenowy>
CONFIG_SUN8I_DE2_CCU
<Putti>
No I have not
lurchi__ is now known as lurchi_
<Putti>
now HDMI blinking stopped... Let's see if I can get soon something showing up
<Putti>
[ 1.183598] sun4i-drm display-engine: failed to allocate buffer with size 33
<Putti>
177600
<Putti>
[ 1.191222] sun4i-drm display-engine: Failed to set initial hw configuration
<Putti>
I guess now the problem is my screen's big resolution
<Putti>
where could I find one with smaller one...
<MoeIcenowy>
you didn't enable CMA, right?
<Putti>
I guess not, which option is that?
<MoeIcenowy>
CONFIG_CMA, and maybe CONFIG_DMA_CMA
SP7RT has quit [Ping timeout: 246 seconds]
<Putti>
that didn't help still the same "failed to allocate buffer with size 33"
LargePrime has quit [Ping timeout: 248 seconds]
fugitive_ has quit [Ping timeout: 240 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
lurchi_ is now known as lurchi__
SP7RT has joined #linux-sunxi
lurchi__ is now known as lurchi_
<Putti>
MoeIcenowy, I had to change the DMA CMA memory size to 40MB, more than that 33177600 bytes it was complaining about.
<Putti>
So now it works! :)
* Putti
is happy
<MoeIcenowy>
oh your screen is so memory-draining...
<MoeIcenowy>
;-)
<Putti>
yeah it is 4k something
<Putti>
MoeIcenowy, I could document these changes that are needed to get HDMI working to the wiki
<MoeIcenowy>
maybe not needed now ;-)
<MoeIcenowy>
as the patches are not yet merged ;-)
<Putti>
are there gonna be some changes to the driver?
scream has quit [Remote host closed the connection]
fugitive_ has joined #linux-sunxi
chlorine has quit []
silviop has joined #linux-sunxi
<silviop>
News about mpi-dsi support on A33-A64 soc ?
leviathanch has joined #linux-sunxi
SP7RT_ has joined #linux-sunxi
IgorPec has joined #linux-sunxi
SP7RT has quit [Ping timeout: 246 seconds]
Hao has joined #linux-sunxi
silviop has quit [Remote host closed the connection]
Putti has quit [Ping timeout: 248 seconds]
Ntemis has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
jbrown has quit [Ping timeout: 240 seconds]
jelly-home is now known as jelly
<Putti>
mhm, I got 4k HDMI working with the H2+ and http://linux-sunxi.org/H3 says it should not be supported. The device's cpuinfo says:
<Putti>
CPU variant : 0x0
<Putti>
CPU part : 0xc07
<Putti>
CPU revision : 5
<KotCzarny>
lol
<KotCzarny>
did you count the pixels?
f0xx has quit [Ping timeout: 240 seconds]
SP7RT has joined #linux-sunxi
<Putti>
I have not, but the image looks crystal clear. But that CPU variant says 0x0 and in wiki it says 0x00 means H3, so is this the field I should compare with the values in wiki?
<KotCzarny>
so, rebranded h3 into h2+ ?
SP7RT_ has quit [Ping timeout: 240 seconds]
<Putti>
the product page where I bought this r69 tv box says H2 SoC, so I guess so.
<jernej>
on this second link I highlighted the important line
argulp has quit [Read error: Connection reset by peer]
<jernej>
can you take second value and test it if it is any better?
argulp has joined #linux-sunxi
<Putti>
thanks, I will try to fiddle with those values as soon as I get applied your patches to the linux-next tree (the last two patches have merge conflict)
<jernej>
Yeah, I have to rebase everything on latest linux-next
<jernej>
btw, upstream already have patches which fixes ccu crashes (DE2 clock)
<Putti>
Has anyone a 4k monitor and H3 board so that we can test on that setup whether the HDMI is working in 4k resolution? jernej, In H2+ the HDMI started working pretty well when you lowered the resolution to 1080p (just tiny bit of almost unnoticeable flickering).
Ntemis has joined #linux-sunxi
<Putti>
jernej, I tried also fiddling with the magic numbers but no effect on the flickering. Next I think I will try changing some clock values if it is just possible.
<jernej>
Putti: What do you mean by that I lowered resolution to 1080p?
<jernej>
Putti: It could also be that H2+ is just H3 with lower quality
lurchi_ is now known as lurchi__
<jernej>
I really didn't notice any flickering with 1080 on H3.
<jernej>
do you have any H3 board for comparison?
<jernej>
ah, obviously not
lurchi__ is now known as lurchi_
chomwitt has joined #linux-sunxi
lurchi_ is now known as lurchi__
dev1990_ has joined #linux-sunxi
dev1990 has quit [Read error: Connection reset by peer]
SP7RT has quit [Ping timeout: 248 seconds]
<jernej>
Putti: I just remembered, it might be HW issue, like HDMI cable - try another, high quality
<jernej>
or worse, since H2+ is advertised as only 1080p capable, PCB manufacturer didn't bother with 4K capable design, like using lower grade components, etc.
SP7RT has joined #linux-sunxi
IgorPec has quit [Ping timeout: 264 seconds]
afaerber has quit [Remote host closed the connection]
lurchi__ is now known as lurchi_
lurchi_ is now known as lurchi__
chomwitt has quit [Quit: WeeChat 1.0.1]
lurchi__ is now known as lurchi_
afaerber has joined #linux-sunxi
lkcl has quit [Ping timeout: 255 seconds]
lurchi_ is now known as lurchi__
reinforce has quit [Quit: Leaving.]
paulk-gagarine has quit [Ping timeout: 248 seconds]
paulk-gagarine has joined #linux-sunxi
lurchi__ is now known as lurchi_
paulk-gagarine has quit [Excess Flood]
lkcl has joined #linux-sunxi
paulk-gagarine has joined #linux-sunxi
jernej has quit [Quit: Konversation terminated!]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
chomwitt has joined #linux-sunxi
leviathanch has quit [Read error: Connection reset by peer]
SP7RT has quit [Ping timeout: 248 seconds]
lurchi_ is now known as lurchi__
paulk-gagarine has quit [Ping timeout: 240 seconds]
paulk-gagarine has joined #linux-sunxi
Mr__Anderson has quit [Remote host closed the connection]
zumbi_ is now known as zumbi
SP7RT has joined #linux-sunxi
jstein has quit [Remote host closed the connection]
fugitive has quit [Ping timeout: 248 seconds]
a|3x has quit [Ping timeout: 240 seconds]
<martinayotte>
@MoeIcenowy : do you have any plans to bring you AXP803 patches from Kernel into U-Boot ? That seems needed to have OPiWin get DCDC1 and USB1-VBUS to allow U-Boot booting from USB
<smaeul>
I have USB booting on OPi Win without any u-boot patches
<smaeul>
martinayotte:
<smaeul>
er, I do have a patch, but not to do with AXP
<martinayotte>
@smaeul , thanks for the hint, but maybe I misunderstood something : USB doesn't have power when U-Boot doing scan, I've done a patch for USB1-VBUS, but it still rely on VCC-5V regulator which is enable with DCDC1 of the PMIC. Did I missed something ?
<MoeIcenowy>
I think DCDC1 should be defaultly on
<MoeIcenowy>
It's for 3.3v IO power
<MoeIcenowy>
otherwise you will be not able to access UART if DCDC1 is not on