ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
rajkosto has joined #linux-sunxi
rajkosto has quit []
rajkosto has joined #linux-sunxi
rajkosto has quit []
rajkosto has joined #linux-sunxi
<rajkosto> hey i cant figure out how to get my orange pi PC 2 to boot
apritzel_ has left #linux-sunxi [#linux-sunxi]
apritzel has joined #linux-sunxi
<apritzel> rajkosto: what exactly is your problem, what have you tried so far?
<rajkosto> i dont even get any serial output on the header, or any usb device when i plug into microusb to see if its in FAL mode
<rajkosto> should the power LED be on regardless of OS ?
<rajkosto> no LEDs are on
<apritzel> rajkosto: do you have a micro SD card inserted? AFAIK the SPI flash is empty initially, so you need a boot image on the SD card to see something
<rajkosto> shouldnt that automatically put it into FAL
<rajkosto> i had a orangepi zero that didnt have soldered NOR flash and i was able to program it via FAL that way once i soldered on some
<rajkosto> i dont know if whatever i put on the microsd is working
<rajkosto> if it can read the microsd at all
<apritzel> yes, if the SPI flash is really empty, it should go into FEL mode
<apritzel> but if there is something with a valid header on it, it might get loaded, but then crash
<apritzel> in any case an SD card is always first boot priority, so you can fix that
<rajkosto> shouldnt it say HELLO! on the uart or something anyway
<apritzel> have you checked that you got RX and TX wired correctly?
<rajkosto> yeah i swapped them
<rajkosto> should be 115200 right (doesnt say this anywhere on the wiki)
<apritzel> baudrate at 115200
Mangy_Dog has quit [Ping timeout: 480 seconds]
<apritzel> if there is something on the SPI flash, you can override this by putting https://github.com/linux-sunxi/sunxi-tools/raw/master/bin/fel-sdboot.sunxi on the SD card
<rajkosto> as a file on fat32 or what
<apritzel> dd if=fel-sdboot.sunxi of=/dev/sdX bs=8k seek=1
<rajkosto> as first sector then
<apritzel> directly to sector 16 of the device
<rajkosto> sector 16 or 0
<rajkosto> whats so special about PhoenixCard utility btw
<apritzel> rajkosto: forget about PhoenixCard or the other Allwinner provided crap
<apritzel> because nobody can answer you that question, really ;-)
<apritzel> the content of the file needs to go to sector 16, so use just "seek=16", or "bs=8k seek=1", like above, or "bs=1k seek=8" (all the same)
<apritzel> also: the LEDs are both GPIO driven, so nothing will light up until some software tells it so
<apritzel> you can check the voltage on the GPIO header pins to see if it gets power
<rajkosto> yeah i can measure 3.3v, 1.4v and 1.1v on the inductors
<rajkosto> still not doing much
<rajkosto> oh the h5 is pretty hot now
<rajkosto> nvm its pretty hot regardless
<apritzel> so it works for me: on power on it loads some U-Boot from SPI flash, but if I put an SD card with fel-sdboot.sunxi in, it goes into FEL mode
<rajkosto> i still get nothing on uart or usb
<apritzel> FEL mode is somewhat picky about proper reset, though, and there might be some stale voltage via the UART cable, or even the OTG port
<apritzel> so it helps to remove all cables, then put them back on, to force a proper power-on
<apritzel> and your FEL setup is correct? If you have the OPi-Zero ready, you might want to double check it there.
<rajkosto> i accidentally killed that by powering it up backwards
<rajkosto> got something that would blink the leds if put on microsd ?
<apritzel> backwards? and are you sure it's dead? In my experience those boards are surprisingly robust, but it's easy to mess the wiring up, and get no output, so one *thinks* it's dead
<rajkosto> nah it gets blazing hot on the dc2dc
<rajkosto> shorted
<rajkosto> it got -5v ;)
<apritzel> ouch
<rajkosto> pretty sure i didnt kill the PC 2 tho
<rajkosto> it just stopped working because the microsd in it got to write limit
<rajkosto> but now i forgot how to set it up
<apritzel> yeah, I guess those boards without a PMIC don't like being mistreated like this ;-)
<apritzel> I don't have anything blinky ready, would be board specific anyway, but I can bake something tomorrow
<apritzel> (it's getting late here)
<rajkosto> i should get a device notification when i plug the microusb into my computer right
<rajkosto> i know that worked immediately on the zero cuz it could get power from microusb too, but not this one needs a DC barrel jack
<apritzel> rajkosto: yeah, I think the micro-B is correctly wired on that board, so you need the barrel jack
<rajkosto> i know i do, i have a charger doctor on its usb outputs to see when its powered
<rajkosto> anything i can put on microsd to get u-boot on there ?
<rajkosto> anything on uart really
<apritzel> you can just build U-Boot for it: make orangepi_pc2_defconfig; make
<apritzel> even with missing TF-A you should see SPL output
<rajkosto> i dont have a way to make anything sorry
<apritzel> armbian should have some image, just the first Megabyte should suffice to see something on the UART
<rajkosto> i have armbian on a microsd it still does nothing
<apritzel> the same dd cmd like above
<rajkosto> doesnt pine64 have a different uart they use
vagrantc has joined #linux-sunxi
<rajkosto> how warm is it supposed to be when you put your finger on the h5
apritzel has quit [Ping timeout: 480 seconds]
<rajkosto> guess what it was the NOR flash
<rajkosto> desoldered it and now i get FAL on usb when i plug it in ;)
vagrantc has quit [Quit: leaving]
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
<rajkosto> i guess i will flash ./usr/lib/linux-u-boot-current-orangepipc2_21.08.1_arm64/u-boot-sunxi-with-spl.bin from the armbian to NOR as its empty atm
<rajkosto> i put the NOR back on with that flashed and now its in the same state as before (no output, no FEL)
chewitt has quit [Quit: Zzz..]
JohnDoe_71Rus has joined #linux-sunxi
<rajkosto> verified data read by sunxi-fel spiflash-read is the same as what i flashed with external tool
<gamiee> rajkosto as far as I remember, you need special image for SPI boot (but I might be wrong)
<rajkosto> i actually just wanted to get something on uart
<rajkosto> dd of fel-sdboot.sunxi to sdcard does make it go to fel but doing the same with uart0-helloworld-sdboot.sunxi i get nothin
<gamiee> what board you have?
<gamiee> not every board uses uart0 as "default TTL"
<rajkosto> orangepipc2
<rajkosto> the /usr/lib/ folder i found was in the armbian for it once its on my microsd
<rajkosto> ok so whatever i put on the NOR is working, cuz when i had uart0 on NOR FEL didnt work, but when i put fel-sdboot.sunxi on the NOR it does go to FEL
<gamiee> thus uart0 isn't used as uart on your board
<gamiee> Yes just watching that right now :D
<gamiee> hmmm interesting
<gamiee> Are you sure you have correct baudrate?
<rajkosto> oh i put the armbian microsd and the green led came on
<rajkosto> yeah the uart just doesnt work
ad__ has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
ad__ has joined #linux-sunxi
Net147 has quit [Quit: Quit]
Net147 has joined #linux-sunxi
wens has quit [Server closed connection]
wens has joined #linux-sunxi
Danct12 has quit [Server closed connection]
Danct12 has joined #linux-sunxi
apritzel has joined #linux-sunxi
chewitt has joined #linux-sunxi
rajkosto has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
wart_ has quit [Remote host closed the connection]
wart_ has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
avph has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
rajkosto has joined #linux-sunxi
rajkosto has quit [Read error: Connection reset by peer]
avph has quit [Ping timeout: 480 seconds]
prefixcactus has joined #linux-sunxi
apritzel has joined #linux-sunxi
rajkosto has joined #linux-sunxi
<rajkosto> apritzel, for no reason after i desoldered, flashed, and resoldered the SPI chip everything started working as expected except still nothing on UART
<rajkosto> (it was all 0xFF after the desoldering anyway so no idea how it could have affected anything)
apritzel has quit [Ping timeout: 480 seconds]
rajkosto has quit [Read error: Connection reset by peer]
apritzel has joined #linux-sunxi
<apritzel> rajkosto: is your SD card good? I saw problems yesterday, where sometimes it would boot from it, sometimes not. Might be power related?
wart_ has quit [Remote host closed the connection]
wart_ has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
JohnDoe_71Rus has quit []
apritzel has quit [Ping timeout: 480 seconds]
valdikss has left #linux-sunxi [Konversation terminated!]
apritzel has joined #linux-sunxi
rajkosto has joined #linux-sunxi