Go to advanced search

by Arikania
Mon Jun 17, 2019 6:30 pm
Forum: Beginners
Topic: Hostname on DHCP - is there a definitive answer?
Replies: 26
Views: 40129

Re: Hostname on DHCP - is there a definitive answer?

In order to be able to ping by hostname, add this to your /etc/hosts file:

Code: Select all

127.0.1.1	your-hostname

No Samba required. Works on wi-fi as well, but does not present the hostname to the router. So the pie still shows up as "unknown".


A.
by Arikania
Sun Jun 16, 2019 6:21 am
Forum: General discussion
Topic: Difference in RASPBIAN STRETCH WITH DESKTOP and RASPBIAN STRETCH LITE.
Replies: 34
Views: 74662

Re: Difference in RASPBIAN STRETCH WITH DESKTOP and RASPBIAN STRETCH LITE.

Why does my Raspbian Stretch Lite (i.e. headless) install and require superfluous stuff?

- Gnome
- LightDM
- X11
- Chromium browser
- LibreOffice
- icons


I get errors when I disable those. How to get a pure, clean install without all this extra stuff?
by Arikania
Wed May 29, 2019 6:14 am
Forum: Troubleshooting
Topic: No interfaces have a carrier
Replies: 0
Views: 160

No interfaces have a carrier

hi all, I am totally at a loss. I had to re-install my system (Raspbian Lite Stretch) after a port scanning attack on my server. I have the new system on my Pi now, the image from April 8 2019. I set it up using raspi-config, after having updated that one, but now I am utterly unable to access my wi...
by Arikania
Thu May 23, 2019 5:07 am
Forum: Bare metal, Assembly language
Topic: sys_time not implemented
Replies: 9
Views: 696

[SOLVED] sys_time and sys_clock_gettime not implemented on Jessie

The function in the previous post returned, for some reason, the function number of sys_timer_delete . I did some more checking around, and it turns out that we need to use sys_gettimeofday (function #78), since sys_clock_gettime and sys_time are not implemented on Jessie for the ARMv7-A. See man 2 ...
by Arikania
Tue May 21, 2019 9:25 am
Forum: Bare metal, Assembly language
Topic: sys_time not implemented
Replies: 9
Views: 696

Re: sys_time not implemented

I am responding right away since you are online at this very moment. I did a little more checking, and for some reason, the listing that I showed triggers EFAULT , indicating an invalid address. But that would merely mean that the copy of r7 would be destroyed. I tried reserving 128 bytes of stack s...
by Arikania
Tue May 21, 2019 8:53 am
Forum: Bare metal, Assembly language
Topic: sys_time not implemented
Replies: 9
Views: 696

Re: sys_time not implemented

Thank you for your quick replies :D The RaspBerry is connected to internet, and in touch with an NTP server. It hosts a website that receives UTC from my server, and displays it correctly. I am now indeed busy trying the solution with sys_clock_gettime , but at first glance, it appears to always ret...
by Arikania
Tue May 21, 2019 2:58 am
Forum: Bare metal, Assembly language
Topic: sys_time not implemented
Replies: 9
Views: 696

sys_time not implemented

I work with Linux Jessie on an ARMv7-A processor, using the GNU assembler. I found that sys_time returns ENOSYS in both these examples, indicating that the system call is not implemented: movs r0,#0 @ pointer to the variable that the time is to be stored in movs r7,#13 @ function # svc #0 sub sp,#8 ...
by Arikania
Mon Dec 24, 2018 11:39 am
Forum: Bare metal, Assembly language
Topic: __eabi div operations
Replies: 16
Views: 13867

Re: __eabi div operations / extra divs coming up

@Arjan The routine that I listed here above is intended as a standard routine that I can include in any project where I need it. Not every project allows divisions to be circumvented. I intend to post a div , uldiv and ldiv function soon by the way. @SKyd3R The undefined reference to messages imply...
by Arikania
Tue Dec 18, 2018 5:02 pm
Forum: Bare metal, Assembly language
Topic: Unable to read directory content properly
Replies: 5
Views: 1243

Re: Unable to read directory content properly

Your explanation is very insightful :D It seems that I didn't understand the use of the third argument well. So, if I understand well, these assumptions should each be true: 1. The 3rd argument of sys_getdents is indeed the buffer size, expressed in bytes, 2. sys_getdents reads directory entries not...
by Arikania
Tue Dec 18, 2018 12:23 pm
Forum: Bare metal, Assembly language
Topic: Unable to read directory content properly
Replies: 5
Views: 1243

Re: Unable to read directory content properly

I am aware indeed that this is about Linux, and not quite bare-metal. However, this seems the thread that is visited by assembly programmers. Functions close_all and utostr10 are indeed self-made functions. I modified the post now, obsoleting close_all and listing utostr10 . It uses function udiv , ...
by Arikania
Sun Dec 16, 2018 1:02 pm
Forum: Bare metal, Assembly language
Topic: STICKY: Bare Metal resources
Replies: 26
Views: 106235

Divisions on 32-bit ARM that has no DIV instructions

This routine divides unsigned integers, and returns both the whole part and the remainder. I believe this to be the fastest routine possible on such processors. The details are in this post . .text .balign 4 .type udiv, %function .thumb_func udiv: # r0 the enumerator # r1 the denominator @ at return...
by Arikania
Sun Dec 16, 2018 12:34 pm
Forum: Bare metal, Assembly language
Topic: __eabi div operations
Replies: 16
Views: 13867

32-bit divisions on ARMv7-A

I use a 32-bit processor that has no built-in DIV instruction (unlike the ARMv7-R), so I designed this routine for it. It divides unsigned integers, and returns both the whole part and the remainder. In each iteration, it finds one bit of the whole part, so the number of iterations equals the number...
by Arikania
Sun Dec 16, 2018 12:24 pm
Forum: Bare metal, Assembly language
Topic: Unable to read directory content properly
Replies: 5
Views: 1243

Unable to read directory content properly

I am trying to read the content of a directory on my ARMv7-A (a 32-bitter). Using function sys_dentdents (function 141) works a single time, but a subsequent call evokes a Segmentation Fault. I also tried function sys_old_readdir (function 89), but it returns ENOSYS, meaning that the function is not...
by Arikania
Sat Dec 08, 2018 6:06 pm
Forum: Troubleshooting
Topic: Unable to mount ext4 usb hdd via fstab as read-write
Replies: 0
Views: 174

Unable to mount ext4 usb hdd via fstab as read-write

I have a Pi B 3+ with Raspbian Stretch on it, and a 3 TB USB hard disk connected to it. On Jessie Lite, I can mount the drive in rw mode with no problems. But whatever I do, even using the very copies from Jessie's /etc/fstab records, I am unable to get the hard disk mounted in read-write mode on th...
by Arikania
Tue Sep 11, 2018 6:58 am
Forum: Debian
Topic: NFS Server. (obsolete info)
Replies: 5
Views: 7629

Re: NFS Server.

I'm trying for days now to get nfs working, but I keep getting told that nfs-kernel-server exited with code 11. I would love to know where I can find either a Jessie Lite image with nfs support or a good how-to. I should add perhaps that return code 11 is quite unusual. After two days of browsing se...

Go to advanced search