6.4 Using U-Boot Networking

33

6.4Using U-Boot Networking

One of the most useful features of the Das U-Boot loader is its’ ability to transfer files across a network. As shown below, the dhcp command is typically used to perform both a BOOTP/DHCP request and transfer a file.

$

$ set bootfile nk4.nb0

$set serverip 192.168.0.26

$dhcp

Using MAC Address 00:50:C2:06:30:8F BOOTP broadcast 1

DHCP client bound to address 192.168.0.14

TFTP from server 192.168.0.26; our IP address is 192.168.0.14 Filename ’nk4.nb0’.

Load address: 0xa0030000

Loading: T T #################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

...

#################################################################

#################################################################

done

Bytes transferred = 23068672 (1600000 hex)

First of all, the bootfile environment variable is used in the example above to define the file to transfer. By default, the boot file is computed using a hex representation of the IP address assigned to the device.

’192.168.0.14’

=> ’0E00A8C0.img’

 

 

Used with a tftp server that allows symlinks, this provides a convenient way to define per-device boot files.

The second thing to note in the example is the use of the serverip environment variable. This variable defines the IP address of the TFTP server, in this case ’192.168.0.26’. If your DHCP server allows setting of the si addr field in the DHCP response (refer to RFC2131 for details), this value can be automatically provided.

The third thing of interest is the load address (0xa0030000). This value is defined in neon.h in the CFG LOAD ADDR macro. It may be overridden through the use of the loadaddr environment variable.

The CONFIG EXTRA ENV SETTINGS macro in configs/neon.h may be used to assign the proper compile-time defaults for the environment variables listed above.

The DHCP/BOOTP/TFTP process is relatively fast, even using a slow protocol like TFTP. The 23MB transfer above took 20 seconds. Much faster than swapping MMC cards. Slower than mdebug/jtag under Linux, but faster than Cygwin jtag and blast.

Any server software that supports RFC1350 should work. The stan- dard tftpd daemon under Linux is a good choice. Under Windows, the free Tftfpd32 by Philippe Jounin is a very nice tool.

December 28, 2005

Revision 2.8

Page 33
Image 33
Sonic Alert 2.8 user manual Using U-Boot Networking

2.8 specifications

Sonic Alert 2.8 is a state-of-the-art alarm clock designed primarily for individuals with hearing impairments or those who simply require a more robust waking mechanism. Engineered to deliver high-performance features and proprietary technologies, this device stands out as a reliable solution for a restful night and an efficient morning wake-up.

One of the hallmark features of Sonic Alert 2.8 is its powerful bed shaker. This vibration mechanism is designed to be placed under your pillow or mattress, providing a tactile wake-up signal. For individuals who may not respond to traditional auditory alarms, this function ensures that they start their day without being late for appointments or commitments.

The alarm clock also boasts an impressive sound output. With adjustable volume settings, users can customize the alarm sound to their preference, ranging from gentle melodies to loud, attention-grabbing beeps. This flexibility caters to diverse user needs, allowing for a more personalized waking experience.

In terms of visibility, Sonic Alert 2.8 integrates a bright, flashing strobe light that works in conjunction with the auditory alarms. This visual cue appeals to those who may have difficulty hearing and can be beneficial in noisy environments. The strobe light can be set to flash in a specific pattern or color, adding another layer of customization to the waking experience.

Moreover, Sonic Alert 2.8 is engineered with a user-friendly interface, featuring large, easy-to-read display numbers that are perfect for the visually impaired. The intuitive buttons allow for straightforward operation, including setting alarms or toggling through various functions with minimal hassle.

The device is also equipped with a battery backup feature, ensuring that alarms will still sound even during power outages. This functionality provides peace of mind, knowing that important morning engagements won't be missed.

Additionally, Sonic Alert 2.8 is constructed with durable materials, making it a reliable companion for years to come. The sleek design and compact size make it easy to place on any bedside table without taking up excessive space.

Overall, Sonic Alert 2.8 exemplifies innovation in alarm technology, combining advanced features and thoughtful design to cater to users' unique needs. Whether for the hard of hearing or anyone who simply desires a more effective wake-up method, this alarm clock is an ideal choice.