Re: [U-Boot] Unaligned memory accesses exception

2018-08-24 Thread Tom Rini
On Wed, Aug 22, 2018 at 09:44:16AM +0200, Fernando AE wrote: > Hello all, > > I'm bringing up U-Boot for an iMX6UL board, and I've encountered > unaligned memory accesses exceptions while I was trying to test the > ETH commands (e.g., 'ping'). > > After investigation, I found out that the iMX6UL

Re: [U-Boot] Unaligned memory accesses exception

2018-08-22 Thread Bin Meng
Hi Fernando, On Wed, Aug 22, 2018 at 5:16 PM, Fernando AE wrote: > Hi Bin, > > The problem lies in these 2 lines, in the ping_send function: > > eth_hdr_size = net_set_ether(net_tx_packet, net_null_ethaddr, PROT_IP); > pkt = (uchar *)net_tx_packet + eth_hdr_size; > > While net_tx_packet i

Re: [U-Boot] Unaligned memory accesses exception

2018-08-22 Thread Bin Meng
Hi Fernando, On Wed, Aug 22, 2018 at 3:44 PM, Fernando AE wrote: > Hello all, > > I'm bringing up U-Boot for an iMX6UL board, and I've encountered > unaligned memory accesses exceptions while I was trying to test the > ETH commands (e.g., 'ping'). > Have you located the place where this unaligne

[U-Boot] Unaligned memory accesses exception

2018-08-22 Thread Fernando AE
Hello all, I'm bringing up U-Boot for an iMX6UL board, and I've encountered unaligned memory accesses exceptions while I was trying to test the ETH commands (e.g., 'ping'). After investigation, I found out that the iMX6UL processor traps unaligned memory accesses by default. As a workaround, I di