Go to advanced search

by Lxw2015
Wed Apr 28, 2021 2:47 pm
Forum: Advanced users
Topic: How to use rsyslog
Replies: 5
Views: 403

Re: How to use rsyslog

can't you just copy the application's output to /var/log/app1.log, /var/log/app2.log....? maybe I miss understood you.
by Lxw2015
Wed Apr 28, 2021 2:43 pm
Forum: Advanced users
Topic: GPIO device driver
Replies: 3
Views: 240

GPIO device driver

I followed this article. https://sysprogs.com/VisualKernel/tutorials/raspberry/leddriver/ trying learn develop linux device driver on RPi 4. but did not succeed. I just copy the source file, and build(make) it on RPi, and install the module. I expect LED connected to GPIO18( header pin 12) blink. bu...
by Lxw2015
Wed Apr 28, 2021 2:15 pm
Forum: Advanced users
Topic: nfs server, export usb memory
Replies: 7
Views: 344

Re: nfs server, export usb memory

power cycle RPi made difference. everything work as expected.
anyone know the what's the different between reboot and power cycle?

thanks
Xian
by Lxw2015
Sat Apr 24, 2021 8:35 pm
Forum: Advanced users
Topic: nfs server, export usb memory
Replies: 7
Views: 344

Re: nfs server, export usb memory

then I changed /etc/fstab by add

Code: Select all

/dev/sda1       /media/pi/T   ntfs    defaults,rw       0       3
reboot.
the boot process stuck at "nfs-mountd.service"
how could I roll back?

:roll:
by Lxw2015
Sat Apr 24, 2021 8:01 pm
Forum: Advanced users
Topic: nfs server, export usb memory
Replies: 7
Views: 344

Re: nfs server, export usb memory

Hi, DougieLawson, What have you got in /etc/exports? /media/pi/T *(rw) /var *(rw) What's in /etc/fstab? I did not do anything with it. do I need do something? pi@raspberrypi:~ $ cat /etc/fstab proc /proc proc defaults 0 0 PARTUUID=736b4644-01 /boot vfat defaults 0 2 PARTUUID=736b4644-02 / ext4 defau...
by Lxw2015
Sat Apr 24, 2021 5:37 pm
Forum: Advanced users
Topic: nfs server, export usb memory
Replies: 7
Views: 344

nfs server, export usb memory

I setup RPi3 A as nfs server. export /var folder. after boots up. from another RPi B, I can mount A's /var to B. problem raised when I try to export /media/pi/T ( usb on RPi3 A). B mount will fail. after I sudo systemctl restart nfs-kernel-server on A. then B mount works. I think that is because, on...
by Lxw2015
Tue Jan 05, 2021 2:22 am
Forum: C/C++
Topic: Pi4, build 64bit app
Replies: 1
Views: 443

Pi4, build 64bit app

Hi,
Pi4 is 64bit arch. when I build gcc main,c . it generated a.out.
ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV....
how could I build 32-bit app? is there a option I could set for gcc?

thanks
Xian
by Lxw2015
Mon Oct 19, 2020 8:38 pm
Forum: General discussion
Topic: Backup SD card to .IMG file
Replies: 25
Views: 3888

Re: Backup SD card to .IMG file

follow steps.
I was able to clone correctly once.
the next day, I do it again. it fails.
umount /tmp/tmp.HZ8daj8sbv
umount /tmp/tmp.beEjUOmerf
Insufficient space. Backup aborted.
before aborted. there is fail, see below
Image

anybody have same issue that I have?
by Lxw2015
Mon Oct 12, 2020 1:19 am
Forum: General discussion
Topic: SD card partition question
Replies: 5
Views: 465

Re: SD card partition question

thank you all. now I understand that the second partition is EXT4, windows 7 won't recognize it. yes, I can use camera format it to get 64GB capacity.
by Lxw2015
Sun Oct 11, 2020 5:11 pm
Forum: Ubuntu
Topic: run ubuntu on RPI4, could not login
Replies: 17
Views: 3968

Re: run ubuntu on RPI4, could not login

My bad! did not read carefully. the instruction is right. foolish my self.
by Lxw2015
Sun Oct 11, 2020 5:08 pm
Forum: General discussion
Topic: SD card partition question
Replies: 5
Views: 465

SD card partition question

After I flash RPi image to SD(64G) card. the SD card has 2 partitions. 1 contains RPi OS(256MB), and another is empty even not formatted. I wonder how could Rasbian full Desktop OS fit into 256MB? and how the RPi use the parttion2? and if I try to use the SD card for other purpose, I can only use pa...
by Lxw2015
Tue Sep 29, 2020 10:22 pm
Forum: Ubuntu
Topic: run ubuntu on RPI4, could not login
Replies: 17
Views: 3968

Re: run ubuntu on RPI4, could not login

there is no new password retype thing. I connect wired internet. make no difference. could ubuntu posted wrong instruction???? so weird!!! I will give up. stupid ubuntu server! I installed ubuntu server on pi4 - all works. Read installation instructions again. What! you did? what I missed. how did ...
by Lxw2015
Tue Sep 29, 2020 3:05 pm
Forum: Ubuntu
Topic: run ubuntu on RPI4, could not login
Replies: 17
Views: 3968

Re: run ubuntu on RPI4, could not login

there is no new password retype thing.

I connect wired internet. make no difference. could ubuntu posted wrong instruction???? so weird!!!

I will give up. stupid ubuntu server!
by Lxw2015
Mon Sep 28, 2020 11:04 pm
Forum: Ubuntu
Topic: run ubuntu on RPI4, could not login
Replies: 17
Views: 3968

Re: run ubuntu on RPI4, could not login

Heater,
I agree with you. what he said not make sense. I do have monitor and keyboard connected. I don't think internet connection is needed for me to login. if that is the case, the ubuntu web should states that. I wonder why no one asked my question before. I missed any thing?!
:oops: :(
by Lxw2015
Mon Sep 28, 2020 10:56 pm
Forum: Ubuntu
Topic: run ubuntu on RPI4, could not login
Replies: 17
Views: 3968

Re: run ubuntu on RPI4, could not login

no matter how many times I tried. not work. and it should not work in that way.
if I enter password as ubuntu. it ask me change password again. seems the password never got changed.
:roll:
by Lxw2015
Mon Sep 28, 2020 10:35 pm
Forum: Ubuntu
Topic: run ubuntu on RPI4, could not login
Replies: 17
Views: 3968

Re: run ubuntu on RPI4, could not login

Hi, David,
did you answer anything?
by Lxw2015
Mon Sep 28, 2020 10:07 pm
Forum: Ubuntu
Topic: run ubuntu on RPI4, could not login
Replies: 17
Views: 3968

run ubuntu on RPI4, could not login

flash this image to a SD card https://ubuntu.com/download/raspberry-pi/thank-you?version=18.04.5&architecture=arm64+raspi4 insert SD card to RPI4. boots up. asking for login. follow the instruction on that download page. Login to your Pi When prompted to log in, use “ubuntu” for the username and...
by Lxw2015
Sun Sep 27, 2020 6:32 pm
Forum: General discussion
Topic: RPi3 boot from usb
Replies: 12
Views: 686

Re: RPi3 boot from usb

thanks for you all. I think boot from USB OTP should be set by default. it's no harm. and made life easier. It is...on the Pi3B+. Bear in mind that the Pi2Bv1.2 uses the same SoC as the Pi3B/Pi3B+ (I believe that both the Pi3B and Pi2Bv1.2 have migrated to the BCM2837B0, which started out on just t...
by Lxw2015
Sat Sep 26, 2020 7:55 pm
Forum: Networking and servers
Topic: access between different subnet
Replies: 3
Views: 294

Re: access between different subnet

Can you use this one instead? https://www.raspberrypi.org/documentation/configuration/wireless/access-point-bridged.md Single network. yes, that is an option. every device on same network. but I want them on different subnet. change RPI routing to implement package transfer between different subnet...
by Lxw2015
Sat Sep 26, 2020 7:25 pm
Forum: General discussion
Topic: RPi3 boot from usb
Replies: 12
Views: 686

Re: RPi3 boot from usb

thanks for you all.
I think boot from USB OTP should be set by default. it's no harm. and made life easier.
if there is SD card inserted, then boot from DS card. if no SD card present then boot from USB. I did not see any disadvantage about this.
any opinion about this?
thanks
LXW
by Lxw2015
Sat Sep 26, 2020 7:14 pm
Forum: Networking and servers
Topic: access between different subnet
Replies: 3
Views: 294

access between different subnet

in this article https://www.raspberrypi.org/documentation/configuration/wireless/access-point-routed.md there are 2 subnets 10.10.0.0 and 192.168.4.0. How could I access wireless client 192.168.4.2(laptop) from PC#1 PC#1 ping 192.168.4.2 it will fail for sure. what do I need to set to make the ping ...
by Lxw2015
Fri Sep 18, 2020 5:35 pm
Forum: General discussion
Topic: RPi3 boot from usb
Replies: 12
Views: 686

Re: RPi3 boot from usb

thank you all. read the link again. I did found it's my miss understanding. it says OPT can't undo. that's why I doubt my self.
by Lxw2015
Fri Sep 18, 2020 2:05 am
Forum: General discussion
Topic: RPi3 boot from usb
Replies: 12
Views: 686

RPi3 boot from usb

according to this link https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md once I set RPi3 boot from USB, then it won't boot from SD card any more. is my understanding wrong or it is designed that way? I can't believe this. Why not like other system if USB boot failed the...
by Lxw2015
Tue Sep 08, 2020 8:36 pm
Forum: Advanced users
Topic: how to build fastboot for RPi?
Replies: 0
Views: 294

how to build fastboot for RPi?

I know there is prebuild fastboot for install for RPi. I want build fastboot from source file. I download source file from https://android.googlesource.com/platfo ... r/fastboot , but there is no instruction of how to build it. does anybody could shine light on this?

thanks
LXW
by Lxw2015
Sat Aug 29, 2020 3:43 am
Forum: Networking and servers
Topic: network bridging
Replies: 2
Views: 258

Re: network bridging

thank you so much. it worked.

Go to advanced search